News for hackers. Stuff that matters.
Re:Why does JSON have commas? by jonplackett on Sunday April 06, 2025 @04:26AM (#43599832)
Kinda answers its doe question though

To be fair, dictionary one-liners might be a tiny bit less easy to read:

{"key1": "value1" "key2": "value2"}

Not just a bit less easy, a lot less easy

Re:Why does JSON have commas? by yonixw on Sunday April 06, 2025 @05:44AM (#43600208)
This. The article suggestion will make parsers need lookahead support instead of simple state machine.

Is "key1" array of ["value1", "key2"] ? or string "value1"? We can't now until we find ':'.

Re:Why does JSON have commas? by frizlab on Sunday April 06, 2025 @02:37PM (#43603785)
Huh? The article does not suggest dropping the [] or did I miss something?
Re:Why does JSON have commas? by t3rra on Sunday April 06, 2025 @04:30AM (#43599852)
a hugely uneasy to read indeed. I feel wasted time to read the article. So horrible.
Re:Why does JSON have commas? by ghusto on Sunday April 06, 2025 @02:50PM (#43603908)
He also accounts for that immediately by saying they should therefore be optional.