News for hackers. Stuff that matters.
Re:Ignore the haters, and other lessons learned from creatin... by 11235813213455 on Sunday August 07, 2022 @05:15PM (#32379986)
The only 2 things I'd like to add in JSON are trailing commas and comments, and this is already supported in most JSON configs (.eslintrc, .babelrc, ..), it's called JSONC I believe
Re:Ignore the haters, and other lessons learned from creatin... by Dylan16807 on Sunday August 07, 2022 @07:39PM (#32380998)
To each their own, but I find mandatory quoted keys a pain in the ass, and once you change those three things you're basically at JSON5.
Re:Ignore the haters, and other lessons learned from creatin... by musicale on Tuesday August 09, 2022 @02:25AM (#32394812)
I kind of wish Apple hadn't deprecated NeXT-style property lists and had instead gone in the direction of GNUstep by trying to improve the classic format.
Re:Ignore the haters, and other lessons learned from creatin... by aseemk on Monday August 08, 2022 @11:58AM (#32387153)
Re:Ignore the haters, and other lessons learned from creatin... by ttiurani on Monday August 08, 2022 @12:56AM (#32382490)
Another name for this is JWCC. IMO very good argument for this feature set here:

https://nigeltao.github.io/blog/2021/json-with-commas-commen...

Re:Ignore the haters, and other lessons learned from creatin... by Dylan16807 on Monday August 08, 2022 @02:46AM (#32382954)
Note that that page forgets to actually make an argument against unquoted keys.

The "Why not JSON5, JSONC #1, HJSON or HOCON instead?" answer says it's because of "unquoted strings", then links to a section that only talks about unquoted values. JSON5 doesn't have unquoted values.

Re:Ignore the haters, and other lessons learned from creatin... by mikepurvis on Sunday August 07, 2022 @07:23PM (#32380898)
A native set type would be nice too, and the syntax for it is obvious— comma separated values like a list, but enclosed in braces like a dict.
Re:Ignore the haters, and other lessons learned from creatin... by aaaaaaaaaaab on Sunday August 07, 2022 @07:33PM (#32380959)
A set is just a list with a uniqueness constraint. JSON already has a list type.
Re:Ignore the haters, and other lessons learned from creatin... by Xenoamorphous on Monday August 08, 2022 @09:12AM (#32384967)
Proper support for dates too.