←back to thread

Fixing JSON

(www.tbray.org)
139 points robin_reala | 1 comments | | HN request time: 0.249s | source
1. andreygrehov ◴[] No.12327966[source]
I'd argue that getting rid of commas would lead to an error-free experience. Say I use UUIDs:

    { "884fbf28-b285-49c2-8335-e42aa3fc896d" "f08bc223-2b49-4d49-a308-7bb93691cef8" }
vs

    { "884fbf28-b285-49c2-8335-e42aa3fc896d", "f08bc223-2b49-4d49-a308-7bb93691cef8" }
Another example is long ids:

    { 214748364721474 89234789 7248374293843 23874827 }
vs

    { 214748364721474, 89234789, 7248374293843, 23874827 }
Should we take into account text format and things like font-spacing? I say yes, because user experience is what's valuable here.

Edit: formatting