Jump to Navigation

016 - JSON Format

One common alternative to using XML as the format for data exchange is to use the JSON format. JSON(JavaScript Over the Network) is a compact, easy-to-parse format that uses a syntax identical to JavaScript's array and object literal syntax. The JSON specification, along with numerous links to implementations and tutorials, can be found at http://json.org/.

Example:

{"employees" :
[
{"name": {
"first": "emp1_first",
"last": "emp1_last"
}},
{"name": {
"first": "emp2_first",
"last": "emp2_last"
}},
{"name": {
"first": "emp3_first",
"last": "emp3_last"
}},
]

}

JavaScript:


Main menu 2

Story | by Dr. Radut