JSON data types

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.

JSON example:

{"students":[	
    {"firstName":"Sandy", "lastName":"Sethi"},
    {"firstName":"Roxy", "lastName":"Malik"},
    {"firstName":"Sunil", "lastName":"Antil"}
]}

JSON datatypes:

Next Topic: How to create json object from string in javascript? Previous Topic: JSON overview.

 

Please follow and like us:
Content Protection by DMCA.com