TJA!@sh.itjust.works to Programmer Humor@programming.dev · 2 年前A box of DevOpssh.itjust.worksimagemessage-square48linkfedilinkarrow-up1778arrow-down128
arrow-up1750arrow-down1imageA box of DevOpssh.itjust.worksTJA!@sh.itjust.works to Programmer Humor@programming.dev · 2 年前message-square48linkfedilink
minus-squareredcalcium@lemmy.institutelinkfedilinkarrow-up22·2 年前Could’ve been worse. Could be unprettified json.
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up14arrow-down1·2 年前Json is incredibly easy to prettify.
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up6·2 年前I do it by converting to yaml ;)
minus-squareCratermaker@discuss.tchncs.delinkfedilinkarrow-up4·2 年前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.
minus-squareElectricCattleman@lemmy.worldlinkfedilinkEnglisharrow-up5·2 年前js’s JSON.stringify(obj, null, 2);
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.
js’s
JSON.stringify(obj, null, 2);Import json Import pprint?
I use jq pretty much every day