Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kpenc21327y@IllSlapU because cat is for concatenating files, not printing to stdout. It is misused daily.
-
donuts238487yHow to do it in Windows? I don't have cats.
Good tip though, guess I can just read the usage docs... -
@billgates I use WSL (bash on windows) on Windows. It can mix windows and Linux commands
-
Nice command. When I needed such a thing, I used the Dev-Tools in my browser to pretty print it.
Console solutions are still the best. 👍 -
For JSON formatting, processing and querying using bash or powershell, I recommend jq (https://stedolan.github.io/jq). It's such an amazing library. It allows you quickly operate over any JSON.
-
The real question here is whether a python would eat a cat and also which one of the two is called Jason...
-
@arpit1997 all very well and good if you have access to sublime, but I've used the python tool over SSH on servers many times, it makes that whole process so much easier!
-
py2js33777y@Zaphod65 no no I completely agree with him and it's a great tip but I said simple man simple things. Never has to prettify a JSON over remote server
Related Rants
Tip: pretty print json file using:
cat file.json | python -m json.tool
rant
python