this post was submitted on 12 Nov 2023
762 points (96.7% liked)

Programmer Humor

19623 readers
1 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago (3 children)

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.

[–] [email protected] 5 points 1 year ago

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

[–] [email protected] 4 points 1 year ago

Import json Import pprint?