Remove all whitespace from JSON to produce the most compact representation. Useful for API payloads and storage.
Example
{ "name": "Alice", "age": 30 } → {"name":"Alice","age":30}
[\n 1,\n 2\n] → [1,2]
Remove all whitespace from JSON to produce the most compact representation. Useful for API payloads and storage.
{ "name": "Alice", "age": 30 } → {"name":"Alice","age":30}
[\n 1,\n 2\n] → [1,2]