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.
Comment on A box of DevOps
magic_lobster_party@kbin.social 1 year agoJson is incredibly easy to prettify.
Cratermaker@discuss.tchncs.de 1 year ago
kbotc@lemmy.world 1 year ago
Import json Import pprint?
ElectricCattleman@lemmy.world 1 year ago
js’s
JSON.stringify(obj, null, 2);
30p87@feddit.de 1 year ago
| jq
30p87@feddit.de 1 year ago
| jq
magic_lobster_party@kbin.social 1 year ago
I use jq pretty much every day
synae@lemmy.sdf.org 1 year ago
I do it by converting to yaml ;)