JSON is an open source data notation created in 2001 by Douglas Crockford.
#13on PLDB | 23Years 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–value pairs and array data types (or any other serializable value). It is a very common data format used for asynchronous browser–server 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});
Feature | Supported | Example | Token |
---|---|---|---|
Lists | ✓ | [1, 2, 3] | |
Maps | ✓ | {"name": "Mary"} | |
Strings | ✓ | "hello world" | |
Integers | ✓ | 80766866 | |
Floats | ✓ | 2.3 | |
Booleans | ✓ | false | |
Case Insensitive Identifiers | X | ||
Semantic Indentation | X | ||
Multiline Strings | X | ||
File Imports | X | ||
MultiLine Comments | X | ||
Ternary operators | X | ||
Conditionals | X | ||
Line Comments | X | ||
Macros | X | ||
Comments | X | ||
Disk Output | X |