What is JSON?
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write. It is the de facto standard for APIs and configuration files.
Common JSON Errors
- Trailing commas: JSON does not allow trailing commas after the last element JSON does not allow trailing commas after the last element in arrays or objects.
- Single quotes: JSON requires double quotes for strings and keys JSON requires double quotes for strings, not single quotes.
- Unquoted keys: All keys in JSON must be quoted strings All keys in JSON must be enclosed in double quotes.
- Comments: JSON does not support comments (// or /* */) JSON does not support comments (// or /* */).
Frequently Asked Questions
What causes invalid JSON?
Common issues include: trailing commas, single quotes (use double), unquoted keys, missing commas between elements, and incorrect nesting.
Is my data safe?
Yes. This tool processes JSON entirely in your browser. No data is sent to any server.