Everything you need to know about JSON: syntax rules, supported data types, differences from JavaScript objects, and common formatting pitfalls.
Calculate your numbers instantly in your browser. Fast, free, no signup.
JSON (short for JavaScript Object Notation) is an open standard, lightweight, human-readable data interchange format. Originally popularized by Douglas Crockford in the early 2000s, JSON has largely replaced XML to become the universal lingua franca of web APIs, configuration files, and modern databases.
Despite its name and derivation from JavaScript syntax, JSON is completely language-independent. Nearly every major programming language—including Python, Go, Rust, Java, C#, and PHP—includes built-in support for generating and parsing JSON.
JSON.parse() API.A valid JSON value must be one of exactly six data types:
"Hello, world").42, 3.14159, -10, 1e5).true or false.null.["apple", "banana", "orange"]).{"name": "Alice", "age": 30}).Important: JSON does not support functions,
undefined, comments, or date objects directly. Dates are usually serialized as ISO 8601 strings (e.g.,"2026-09-17T12:00:00Z").
Unlike JavaScript source code, JSON syntax is strictly enforced:
In JSON, all keys and string values must use double quotes (").
{'user': 'Alice'}{"user": "Alice"}JSON prohibits trailing commas after the last item in arrays or objects.
[1, 2, 3,][1, 2, 3]Keys in JSON objects must be double-quoted strings.
{status: "active"}{"status": "active"}Working with an unformatted API response or debugging a broken JSON payload? Use our client-side JSON Formatter to beautify your data, or the JSON Validator to highlight exact syntax errors. Your data is processed 100% locally on your machine.