TJA!@sh.itjust.works to Programmer Humor@programming.dev · 11 months agoA box of DevOpssh.itjust.worksimagemessage-square45fedilinkarrow-up1680arrow-down122
arrow-up1658arrow-down1imageA box of DevOpssh.itjust.worksTJA!@sh.itjust.works to Programmer Humor@programming.dev · 11 months agomessage-square45fedilink
minus-squareredcalcium@lemmy.institutelinkfedilinkarrow-up18·11 months agoCould’ve been worse. Could be unprettified json.
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up9arrow-down1·11 months agoJson is incredibly easy to prettify.
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up5·11 months agoI do it by converting to yaml ;)
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up2·11 months agoI use jq pretty much every day
minus-squareCratermaker@discuss.tchncs.delinkfedilinkarrow-up2·11 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·11 months agojs’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 use jq pretty much every day
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);