TJA!@sh.itjust.works to Programmer Humor@programming.dev · 10 months agoA box of DevOpssh.itjust.worksimagemessage-square38fedilinkarrow-up1770arrow-down127
arrow-up1743arrow-down1imageA box of DevOpssh.itjust.worksTJA!@sh.itjust.works to Programmer Humor@programming.dev · 10 months agomessage-square38fedilink
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up14arrow-down1·10 months agoJson is incredibly easy to prettify.
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up6·10 months agoI do it by converting to yaml ;)
minus-squareCratermaker@discuss.tchncs.delinkfedilinkarrow-up4·10 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.
minus-squareElectricCattleman@lemmy.worldlinkfedilinkEnglisharrow-up5·10 months agojs’s JSON.stringify(obj, null, 2);
minus-squarekbotc@lemmy.worldlinkfedilinkEnglisharrow-up6arrow-down2·10 months agoImport json Import pprint?
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up2·9 months agoI use jq pretty much every day
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?
I use jq pretty much every day