Pretty print
Opened this issue · 3 comments
Deleted user commented
Using this file:
$ cat x.json
{"name":{"first":"Tom","last":"Smith"}}
JQ can pretty print a block:
$ jq .name x.json
{
"first": "Tom",
"last": "Smith"
}
JSONed seems to have no way to do that:
$ jsoned -i x.json name
{"first":"Tom","last":"Smith"}
tidwall commented
I just added a -p flag that will now pretty print. Also the keypath is optional when the -p flag is specified.
Deleted user commented
confirmed fixed - damn that was fast - thanks
tidwall commented
Thanks! I'll close these issues. Feel free to reopen if you run into any problems.