JSON is a data notation created in 2001 by Douglas Crockford.
#17on PLDB | 22Years Old | 133Repos |
In computing, JavaScript Object Notation or JSON ( JAY-s蓹n), is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute鈥搗alue pairs and array data types (or any other serializable value). It is a very common data format used for asynchronous browser鈥搒erver communication, including as a replacement for XML in some AJAX-style systems. JSON is a language-independent data format. Read more on Wikipedia...
{ "hello": "world" }
{
"id": 1,
"name": "Foo",
"price": 123,
"tags": ["Bar","Eek"],
"stock": { "warehouse":300, "retail":20 }
}
var y = {a: undefined};
var ys = JSON.stringify(y,
function (k, v){return (v === undefined) ? "UNDEFINED" : v});