sala.js

 

JSON array

JSON array written in square brackets:

Array may comprise a plurality of objects:

{
"employees": [
{ "firstName":"John" , "lastName":"Doe" },
{ "firstName":"Anna" , "lastName":"Smith" },
{ "firstName":"Peter" , "lastName":"Jones" }
]
}

In the above example, the object "employees" is an array comprising three objects. Each object represents a record of a person (name and surname) of.

 

Guess you like

Origin www.cnblogs.com/xtxt1127/p/11648598.html