TJA!@sh.itjust.works to Programmer Humor@programming.dev · 1 year agoA box of DevOpssh.itjust.worksimagemessage-square48fedilinkarrow-up1767arrow-down126
arrow-up1741arrow-down1imageA box of DevOpssh.itjust.worksTJA!@sh.itjust.works to Programmer Humor@programming.dev · 1 year agomessage-square48fedilink
minus-squareCratermaker@discuss.tchncs.delinkfedilinkarrow-up4·1 year 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·1 year agojs’s JSON.stringify(obj, null, 2);
minus-squarekbotc@lemmy.worldlinkfedilinkEnglisharrow-up6arrow-down2·1 year 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?