JSON syntax is derived from javascript syntax.
JSON Syntax:
- Data must be in name: value pairs
- Data must be separated by commas
- Objects are held between curly braces.
- Arrays are held between square brackets.
- File type for JSON file is ‘.json’
- MIME type for JSON text is ‘application/json’
In JSON, the values must be of any one of the following types:
- String (must be written in double quotes)
- Number (Integer or float)
- Object
- Array
- Boolean
- Null