simple shell command to call jsonic
$ npm i -g jsonic-cli
$ echo '[{a:b}]' | jsonic --json
[
{
"a": "b"
}
]
$ echo '[{a:b}]' | jsonic --compact
[{"a":"b"}]
$ echo '[{a:b}]' | jsonic --jsonic
[{a:b}]
$ echo '[{a:b}]' | jsonic --console
[ { a: 'b' } ]
Default is --console style, which is probably color-coded when output is a tty.
I'm not associated with the author of jsonic. I just wanted a cli for it.