JSON Text Tools

Jsonformatter and Text Tools
Home › Guides › What Is JSON? Syntax, Data Types and Examples

What Is JSON? Syntax, Data Types and Examples

Updated November 2026

JSON (JavaScript Object Notation) is a text format for exchanging structured data. Nearly every web API uses it because it is compact, readable and supported by every programming language.

The six value types

Syntax rules

Keys are always double-quoted strings. Items are separated by commas, with no comma after the last one. Strings use double quotes, and special characters are escaped with a backslash, such as \n for a new line. There are no comments.

A complete example

{
  "name": "Mary Jane",
  "age": 30,
  "active": true,
  "tags": ["admin", "editor"],
  "address": {"city": "Bangkok", "zip": null}
}

Working with JSON

Real responses are often minified and hard to read. Paste them into the JSON Formatter to see the structure, and read how to fix parse errors when something is invalid.

Message here