- Square brackets
[]
store arrays and values are separated by,
(comma). - Curly braces
{}
store objects and each name is followed by:
(colon), the name/value pairs are separated by,
(comma). - Data is represented in name/value pairs.
Advantages of JSON
{
"fruits": [
{
"id" : "1",
"name" : "Apple",
"quantity" : "10"
},
{
"id" : "2",
"name" : "Banana"
"quantity" : "12"
}
]
}