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

> it does make the automatic generation of JSON much nicer

Are you generating JSON as freeform text? Because a call to JSON.stringify (or whatever JSON-dumping method exists in your language of choice) would not be "made nicer" by handling trailing commas.



How so?


Because the tool handles generation so you don't give a damn whether the final format uses trailing commas or not? And you can use trailing commas in your source language if that's supported?


Ah, I see. You are assuming a JSON encoder exists for a given language. I'm not.




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

Search: