A box of DevOpsTJA!@sh.itjust.works to Programmer Humor@programming.dev – 743 points – 11 months ago47Post a CommentPreviewYou are viewing a single commentView all commentsCould'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?| jq | jq I 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.js's JSON.stringify(obj, null, 2);Import json Import pprint?| jq | jq I use jq pretty much every day
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?| jq | jq 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);Import json Import pprint?| jq
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