JSON Syntax:
JSON syntax is a subset of the JavaScript object notation syntax. JSON syntax has following rules:
1. Data is represented in name/value pairs.
2. Data is separated by commas.
3. Curly braces hold objects and each object name is followed by colon.
4. Square brackets hold arrays.
1. Data is represented in name/value pairs.
2. Data is separated by commas.
3. Curly braces hold objects and each object name is followed by colon.
4. Square brackets hold arrays.
JSON example:
JSON datatypes:
Data Type | Description |
| It represents double-precision floating-point format in JavaScript |
| It represents double-quoted Unicode with backslash escaping |
| It represents true or false |
| It represents an ordered sequence of values |
| it can be a string, a number, true or false, null etc |
| It represents an unordered collection of key:value pairs |
| It can be used between any pair of tokens |
| It represents empty |
No comments:
Post a Comment