JSON Format Guide

JSON (JavaScript Object Notation) is a lightweight text format used for data exchange between systems. It is human-readable, language-independent, and widely used in APIs.

JSON Structure Basics

JSON is made of key-value pairs and ordered lists:

Supported Data Types

Valid JSON Example

{
  "id": 42,
  "name": "Ada",
  "isActive": true,
  "skills": ["Rust", "TypeScript", "SQL"],
  "profile": {
    "country": "US",
    "timezone": "UTC-5"
  },
  "manager": null
}

Common JSON Mistakes

Best Practices

For the formal specification, read RFC 7159: The JavaScript Object Notation (JSON) Data Interchange Format.

Need to clean up a payload quickly? Go back to the JSON Formatter page.