How JSON Minification Works
The minifier parses your JSON into a JavaScript object, then calls JSON.stringify(obj) with no indentation argument. The output contains only the structural characters ({ } [ ] : ,), quoted keys, and primitive values — zero whitespace between tokens. Because JSON allows whitespace only between tokens (never inside primitives), the resulting string is guaranteed to be valid JSON that parses to the same object as the input. For very large files, this typically saves 40-50% of the byte count.