Skip to content

Instantly share code, notes, and snippets.

@atul161
Created January 30, 2020 12:16
Show Gist options
  • Save atul161/9d1ff7aea9ce328fb01d913a0bb32bd3 to your computer and use it in GitHub Desktop.
Save atul161/9d1ff7aea9ce328fb01d913a0bb32bd3 to your computer and use it in GitHub Desktop.
rules
1.Data is in name-value pairs.
"name": "john Gupta"
2. Commas always separate data.
"name": "john Gupta", "age": 12
3. Curly braces always hold the objects.
{ "name" : "john Gupta" , "age" : 12 }
4. Square brackets always hold an array.
employees":[
{ "firstName":" John", "Lastname":" Gupta" },
{ "firstName":"Anna", "last name:"Shrivastava" },
{ "firstName":" Peter", "Lastname":" Thakur" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment