Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is what json should have been from day one.

How many fields in all json streams ever transmitted aren't alphanum compliant? My bet is 99% of them are simple names, so forcing it to be surrounded by quotes for that 1% is just a waste of chars and shift keys, even if they're mostly automated.

I spend a lot of time designing, testing and validating apis for which I have to read tons of json, and believe me, without quotes my life would be so much easier.

Comments are also important for testing. Trailing commas would save plenty of extra code to remove them from lists.

These improvements would be mostly welcome.



the reason the quotes were added to keys is not alphanumeric compliance. It's avoiding javascript reserved words like "do" and "class".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: