Tag: prettyprint
-
How to pretty print JSON in bash console
Recently i was playing with Swagger Codegen tool and i needed to look at available configuration fields for java language. You can do it easily by running : curl -X GET --header 'Accept: application/json' 'https://generator.swagger.io/api/gen/clients/java' But, as an output, you'll get this : {"…
-
Pretty printing of JSON in javascript
I like JSON very much. It's easy to read, easy to work with, but when you get a big structure, it's handy to have some quick way for print it out in a nice readable format. Before i was using Sublime Text editor with PrettyJson plugin. But now i started…