How it works
The input is parsed with the browser's own JSON parser, so the result matches what your JavaScript code will accept. If parsing fails, the error position is converted into a line and column.
Minifying removes all whitespace, which matters for bandwidth-limited links: a pretty-printed sensor payload can be 20–40% larger than the minified version.
Valid JSON: double-quoted keys and strings, no trailing commas, no commentsWorked example
Pasting {"device":"lathe-04","state":"running","current":12.4} and choosing 2-space indentation prints each key on its own line. That pretty-printed version is 67 bytes; minifying it brings it back to 54 bytes, about 20% smaller.