Common questions about invalid JSON, minifying and privacy.
Why is my JSON invalid?
The usual suspects are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, comments, and unescaped line breaks inside strings. The error message comes from your browser's JSON parser and usually names the position where parsing failed; the mistake is normally just before that spot.
What's the difference between JSON and a JavaScript object?
JSON is stricter. Keys and strings need double quotes, and comments, trailing commas, functions and undefined aren't allowed. A JavaScript object literal can contain all of these, so it isn't always valid JSON.
Does minifying change my data?
No. Minifying only removes whitespace between tokens. The parsed result is exactly the same; only the file gets smaller.
Is my JSON sent to a server?
No. Formatting, validation and minifying run in your browser, so you can safely paste API responses or configuration files that contain internal data.