JSON

JSON (JavaScript Object Notation) is a text data-interchange format derived from the syntax of JavaScript objects. It supports objects, arrays, strings, numbers, booleans, and null, with keys in double quotes. JSON.stringify produces the text and JSON.parse converts it to a value.

Example

JSON.stringify({ nom: 'Léa' })
JSON.parse('{"age": 30}')

Related concepts

The whole glossary