For example, a person's contact information can be represented in JSON as follows:
contact::=
{
"firstName": "John",
"lastName": "Smith",
"age": 25,
"married": true,
"address": {
"streetAddress": "123 Main Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
"email": [ "jsmith@yahoo.com", "jsmith@gmail.com" ],
"phoneNumber": [
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "fax",
"number": "646 555-4567"
}
]
}