trim-object-stream

stream that trims all whitspace from keys and values

trim-object-stream

stream that trims all whitespace from keys and values on the top level of an object

$ cat line-delimited-json.json | trim-object-stream
$ echo $'{" foo ":" bar ", " baz ": { " qux ": 1 }}' | trim-object-stream
{"foo":"bar","baz":{"qux":1}}