Glossary

JSON

JAY-son

A lightweight text format for storing and sending data, based on JavaScript object syntax.

JSON (JavaScript Object Notation) is a text format for structured data and the default way APIs send and receive data on the web. Most people pronounce it “JAY-son,” like the name Jason.

Example

{
  "name": "Marko",
  "newsletter": true,
  "tags": ["html", "css", "js"]
}

Rules worth knowing

  • Keys must be in double quotes.
  • Values can be strings, numbers, booleans, null, arrays or objects.
  • No comments and no trailing commas.

Webhooks usually deliver their data as JSON too. In JavaScript, use JSON.parse() to read it and JSON.stringify() to create it.

Related: YAML.