744
A box of DevOps (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] magic_lobster_party@kbin.social 13 points 1 year ago

Json is incredibly easy to prettify.

[-] synae@lemmy.sdf.org 6 points 1 year ago

I do it by converting to yaml ;)

[-] Cratermaker@discuss.tchncs.de 4 points 1 year ago

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.

[-] ElectricCattleman@lemmy.world 5 points 1 year ago

js's JSON.stringify(obj, null, 2);

[-] kbotc@lemmy.world 4 points 1 year ago

Import json Import pprint?

[-] 30p87@feddit.de 2 points 11 months ago
[-] 30p87@feddit.de 2 points 11 months ago
[-] magic_lobster_party@kbin.social 2 points 11 months ago

I use jq pretty much every day

this post was submitted on 12 Nov 2023
744 points (96.6% liked)

Programmer Humor

19488 readers
351 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS