SyntaxStudy
Sign Up
JavaScript Introduction to JSON
JavaScript Beginner 3 min read

Introduction to JSON

JSON

JSON (JavaScript Object Notation) is a lightweight text format for data exchange. It is human-readable and language-independent, derived from JavaScript object syntax.

JSON supports strings, numbers, booleans, null, arrays, and objects.

Example
{
  "name": "Alice",
  "age": 30,
  "active": true,
  "score": null,
  "tags": ["admin", "editor"],
  "address": {
    "city": "London",
    "zip": "EC1A 1BB"
  }
}
Pro Tip

JSON keys must be double-quoted strings — single quotes and unquoted keys are not valid JSON.