Trimming a pretty-printed config file
A pretty-printed config weighs 412 bytes in 14 lines; its minified form is 301 bytes — 27% smaller. For a config shipped to thousands of devices, that saving multiplies across every install and every fetch. The minified result remains valid JSON and can be formatted again at any time with the JSON formatter.
| Input | Value |
|---|---|
| json | {
"retries": 3,
"timeoutMs": 5000,
"features": {
"cache": true
}
} |
| Result | 412 B → 301 B (−27%) · valid JSON · identical data |