TJA! to Programmer [email protected] • 8 months agoA box of DevOpsimagemessage-square47arrow-up1787arrow-down127
arrow-up1760arrow-down1imageA box of DevOpsTJA! to Programmer [email protected] • 8 months agomessage-square47
minus-square@[email protected]linkfedilink4•8 months agoI wrote a json prettifier a couple months ago with just a couple lines of code. I thought it would take a while but ended up taking like 10 minutes.
Json is incredibly easy to prettify.
I do it by converting to yaml ;)
I wrote a json prettifier a couple months ago with just a couple lines of code. I thought it would take a while but ended up taking like 10 minutes.
js’s
JSON.stringify(obj, null, 2);
Import json Import pprint?
| jq
| jq
I use jq pretty much every day