JSON/Syntax

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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"
}