Jump to content

JSON/Syntax

From Wikibooks, open books for an open world

In JSON, the syntax is similar to Javascript, as it was derived from Javascript, although now it is independent and separate language.

It's composed of key-value pairs delimited with braces. Ex:

{
    "key1": 'value1",
    "key2": 'value2"
}