tidwall/jj

Pretty print

Opened this issue · 3 comments

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"}

I just added a -p flag that will now pretty print. Also the keypath is optional when the -p flag is specified.

confirmed fixed - damn that was fast - thanks

Thanks! I'll close these issues. Feel free to reopen if you run into any problems.