Common JSON errors
Most invalid JSON comes from a few mistakes: a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, or comments, which JSON does not allow. The error message points to the line and column where parsing stopped, which is usually just after the real problem.
Formatting with 2 spaces is the most common style for config files and APIs. Minifying removes all spaces and line breaks to make files smaller for sending over a network.
Safe for private data
API responses, tokens and config files often contain secrets. This formatter runs entirely in your browser, so nothing you paste is uploaded or logged.