Home How can I pretty-print JSON in a (Unix) shell script?
Reply: 0

How can I pretty-print JSON in a (Unix) shell script?

user312
1#
user312 Published in February 26, 2018, 3:00 am

Is there a (Unix) shell script to format JSON in human-readable form?

Basically, I want it to transform the following:

{ "foo": "lorem", "bar": "ipsum" }

... into something like this:

{
    "foo": "lorem",
    "bar": "ipsum"
}
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.715285 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO