When to minify JSON
Minified JSON has no spaces or line breaks, so it's as small as possible to send over a network, store in a database or embed in code. The data itself is unchanged.
Minifying also validates the JSON: if there's a syntax error, you'll see it before shipping. To make minified JSON readable again, use the JSON formatter.