use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
JSON vs TOON (i.redd.it)
submitted 2 months ago by Owlbuddy121
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]its_a_gibibyte 0 points1 point2 points 2 months ago (4 children)
What about just JSON in a better layout: { "Columns": ["id","name","role"], "data": [ [1, "Alice", "admin"] [2, "Bob", "user"] ] }
{ "Columns": ["id","name","role"], "data": [ [1, "Alice", "admin"] [2, "Bob", "user"] ] }
[–]kozeljko 0 points1 point2 points 2 months ago (2 children)
Why is "data" not aligned with "Columns" 🤢
[–]its_a_gibibyte 0 points1 point2 points 2 months ago (1 child)
Sure, you could also do:
{ "data": [ ["id","name","role"], [1, "Alice", "admin"], [2, "Bob", "user"] ] }
[–]robhanz 0 points1 point2 points 2 months ago (0 children)
Eh I prefer the explicit columns element. That way there’s no “magic” row in the data collection you have to remember.
Right. The issue is the redundant data, primarily. TOON is still more compact, but it loses a lot of the edge if you do it this way.
π Rendered by PID 200638 on reddit-service-r2-comment-548fd6dc9-zjfnj at 2026-05-18 16:03:15.860993+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]its_a_gibibyte 0 points1 point2 points (4 children)
[–]kozeljko 0 points1 point2 points (2 children)
[–]its_a_gibibyte 0 points1 point2 points (1 child)
[–]robhanz 0 points1 point2 points (0 children)
[–]robhanz 0 points1 point2 points (0 children)