Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: just pretty-print (ie. identity transform) #48

Open
bartgrantham opened this issue Jul 6, 2023 · 1 comment
Open

Comments

@bartgrantham
Copy link

bartgrantham commented Jul 6, 2023

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.

@bartgrantham
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant