You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An underappreciated feature of jq is simply using it to pretty-print compact JSON such as jq . compact.json.
Is there a jp equivalent? I tried cat compact.json | jp @ but that did not do what I expected, probably owing to my having learned JMESPath only a couple hours ago and still finding my legs.
The text was updated successfully, but these errors were encountered:
I figured out my problem: jp only processes the first JSON in a sequence of JSONs. So I've changed the issue to requesting jp repeatedly consume JSONs from input and apply the JMESPath until EOF.
An underappreciated feature of
jq
is simply using it to pretty-print compact JSON such asjq . compact.json
.Is there ajp
equivalent? I triedcat compact.json | jp @
but that did not do what I expected, probably owing to my having learned JMESPath only a couple hours ago and still finding my legs.The text was updated successfully, but these errors were encountered: