Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

JSON

< >

JSON is an open source data notation created in 2001 by Douglas Crockford.

#13on PLDB 23Years Old 133Repos
Homepage · Leet Sheet · Spec · Wikipedia · Docs

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...


Example from hello-world:
{ "hello": "world" }
Example from Linguist:
{ "id": 1, "name": "Foo", "price": 123, "tags": ["Bar","Eek"], "stock": { "warehouse":300, "retail":20 } }
Example from Wikipedia:
var y = {a: undefined}; var ys = JSON.stringify(y, function (k, v){return (v === undefined) ? "UNDEFINED" : v});

Language features

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

- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v144.0.0