JAVASCRIPT
JSON Array
// JSON array
[ "apple", "mango", "banana"]
// JSON array containing objects
[
{ "name": "John", "age": 22 },
{ "name": "Peter", "age": 20 }.
{ "name": "Mark", "age": 23 }
]
json array
{
"employees":[
{"firstName":"mohammad", "lastName":"alshraideh"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]
}
json arrays
{
"array": [{1,2,3,4,5,6}]
}
JSON arrays
"users":[
{"firstName":"John", "lastName":"Abrahm"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Shane", "lastName":"Warn"}
]
json object array
const Object = {a:1,
b:'ab'
};
const Array = [1,
'ab',
4
];
JSON Array
'["Ford", "BMW", "Fiat"]'
JSON Array
// JSON array
[ "apple", "mango", "banana"]
// JSON array containing objects
[
{ "name": "John", "age": 22 },
{ "name": "Peter", "age": 20 }.
{ "name": "Mark", "age": 23 }
]
json array
{
"employees":[
{"firstName":"mohammad", "lastName":"alshraideh"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]
}
json arrays
{
"array": [{1,2,3,4,5,6}]
}
JSON arrays
"users":[
{"firstName":"John", "lastName":"Abrahm"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Shane", "lastName":"Warn"}
]
json object array
const Object = {a:1,
b:'ab'
};
const Array = [1,
'ab',
4
];
JSON Array
'["Ford", "BMW", "Fiat"]'