TJA!@sh.itjust.works to Programmer Humor@programming.dev · 1 year agoA box of DevOpssh.itjust.worksimagemessage-square46fedilinkarrow-up1740arrow-down124
arrow-up1716arrow-down1imageA box of DevOpssh.itjust.worksTJA!@sh.itjust.works to Programmer Humor@programming.dev · 1 year agomessage-square46fedilink
minus-squareredcalcium@lemmy.institutelinkfedilinkarrow-up19·1 year agoCould’ve been worse. Could be unprettified json.
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up14arrow-down1·1 year agoJson is incredibly easy to prettify.
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up6·1 year agoI do it by converting to yaml ;)
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-up4·1 year agojs’s JSON.stringify(obj, null, 2);
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up1·1 year agoI use jq pretty much every day
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);
I use jq pretty much every day