Datasheet

Chapter 1: AJAX Technologies
21
❑ Reverse solidus ( \\ )
❑ Backspace ( \b )
❑ Formfeed ( \f )
❑ Newline ( \n )
❑ Carriage return ( \r )
❑ Horizontal tab ( \t )
number
A JSON number is very similar to a C# number with one major exception: JSON does not support octal
and hexadecimal formats.
null, true, and false
JSON supports null , true , and false as valid values.
JSON is a simple-yet-powerful, data-interchange format. It has the same hierarchical nature as XML,
without the extra angle brackets, as shown in the following example:
{
“departments”:[
{“departmentName”:”department1”,
“departementManager”:{“name”:”someName1”,
“employeeID”:1,
“managesMultipleDepts”:true
},
“sections”:[
{“sectionName”:”section1”,
“sectionManager”:{“name”:”someName2”,
“employeeID”:2
},
“employees”:[
{“name”:”someName3”,
“employeeID”:3
},
{“name”:”someName4”,
“employeeID”:4
}
]
},
{“sectionName”:”section2”,
“sectionManager”:{“name”:”someName5”,
“employeeID”:5
},
“employees”:[
{“name”:”someName6”,
“employeeID”:6
},
(continued)
c01.indd 21c01.indd 21 8/20/07 5:40:11 PM8/20/07 5:40:11 PM