Json Syntax

The JSON syntax is a basically considered as a subset of the JavaScript syntax, and here we have couple of JSON Syntax Rules with example code,

Let’s have quick look here, about json rules.

1) Data is represented in pairs (name/value) - "firstName":"William Henry Gates" 2) Curly braces holds Object - {"firstName":"William Henry", "lastName":"Gates"} 3) Commas separates the Data - {"name":"value", "name":"value"} 4) Square brackets hold array

var myData [{
"firstName":"William Henry",
 "founder of": "Microsoft"

 "founder of": "Google"
 "lastName":"Zuckerberg "
 "founder of": "Facebook"