一个对象包括多个数据
一个数组包括多个对象
JSON 对象在花括号中书写:{ "firstName":"John" , "lastName":"Doe" }
JSON 数组在方括号中书写:"employees": [ { "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName":"Jones" } ]
一个对象包括多个数据
一个数组包括多个对象
JSON 对象在花括号中书写:{ "firstName":"John" , "lastName":"Doe" }
JSON 数组在方括号中书写:"employees": [ { "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName":"Jones" } ]