JSON Object

JSON Object: An object is an unordered set of name/value pairs. An object begins with { (left brace) and ends with } (right brace). Each name is followed by : (colon) and the name/value pairs are separated by , (comma).

JSON Object

JSON Object Syntax:

object

 {} { members }

members

 pair pair , members

pair

string : value 

value

 string number object array true false null

JSON Object Examples:

 

Example 1: Empty object

{}

Example 2: name/value pairs

{  "name":"Tom"  "Job":"Engineer"}

Example 3: pair , members

{   "name":"Tom"   "Job":"Engineer"   "Address": {       "Street": "max colony Road"       "Location": "Delhi"     }}