Comment on A box of DevOps
redcalcium@lemmy.institute 1 year ago
Could’ve been worse. Could be unprettified json.
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.
Import json Import pprint?
js’s JSON.stringify(obj, null, 2);
JSON.stringify(obj, null, 2);
| jq
I use jq pretty much every day
magic_lobster_party@kbin.social 1 year ago
Json is incredibly easy to prettify.
synae@lemmy.sdf.org 1 year ago
I do it by converting to yaml ;)
Cratermaker@discuss.tchncs.de 1 year ago
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.
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