Measures Concepts
GitHub icon

JSON

JSON - Data notation

< >

JSON is a data notation created in 2001 by Douglas Crockford.

#17on 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...


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 Token Example
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

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout