TJA!@sh.itjust.works to Programmer Humor@programming.dev · 8 months agoA box of DevOpssh.itjust.worksimagemessage-square45fedilinkarrow-up1751arrow-down125
arrow-up1726arrow-down1imageA box of DevOpssh.itjust.worksTJA!@sh.itjust.works to Programmer Humor@programming.dev · 8 months agomessage-square45fedilink
minus-squareCratermaker@discuss.tchncs.delinkfedilinkarrow-up4·8 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·8 months agojs’s JSON.stringify(obj, null, 2);
minus-squarekbotc@lemmy.worldcakelinkfedilinkEnglisharrow-up6arrow-down2·8 months agoImport json Import pprint?
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?