Learn Json

Json Syntax

Json Synatx Includes following.

  • Data is represented in name/value pairs.
  • Each name is followed by ':'(colon).
  • The name/value pairs are separated by ,(comma).
  • Json object starts and ends with '{' and '}'.
  • Square brackets '[ ]' hold arrays and values are separated by ,(comma).

Json Objects Example

{
"id":"21",
"language": "Json",
"edition": "second",
}

Json Array Example

{
"book": [
{
"id":"21",
"language": "Json",
"edition": "second",
},
{
"id":"42",
"language": "Json",
"edition": "third"
}]
}