TJA! to Programmer [email protected] • 2 years agoA box of DevOpssh.itjust.worksimagemessage-square44fedilinkarrow-up1708arrow-down126
arrow-up1682arrow-down1imageA box of DevOpssh.itjust.worksTJA! to Programmer [email protected] • 2 years agomessage-square44fedilink
minus-square@[email protected]linkfedilink3•2 years 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);
| jq
Import json Import pprint?
| jq
I use jq pretty much every day