Basics of JSON
What is JSON?
JSON (which is short for JavaScript Object Notation) is a lightweight format for storing and transporting data. A JSON file will typically contain a list of what are known as JSON Objects, identified by a matching name and value pair, each object separated by a comma :
{
"object_name": "value",
"object_name2": "value2"
}
JSON Objects can also contain arrays of other objects:
{
"object_name3":
[
{"sub-object1": "sub-value1"},
{"sub-object2": "sub-value2"},
{"sub-object3": "sub-value3"}
]
}