JSON syntax is derived from JavaScript object notation syntax
Data Rules | Example | |
1 | Should be in key value pairs | “name”:”samuel” |
2 | Should be separated by commas | {“Name”:”samuel”},{“Name”:”Martin”} |
3 | Curly braces hold objects | {“Name”:”samuel”, “Country”:”India”} |
4 | Square brackets hold arrays | [{“Name”:”samuel”},{“Name”:”Martin”}] |