關聯數組:php
yamljson
person: name: 張三 age: 24
json數組
{ "person": { "name": "張三", . "age": 24 } }
普通數組code
yamlblog
persons: - name: 張三 aeg: 24 - name: 李四 age: 30
jsonclass
{ "persons": [ { "name": "張三", "age": 24 }, { "name": "李四", "age": 30 } ] }
普通鍵值對di
yamlco
language: yaml
jsonyaml
"language": "yaml"