3 ms·
> 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
by masklinn 13y ago
> 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.
- spc476 13y agoHow so?
- masklinn 13y agoBecause 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?
- spc476 13y agoAh, I see. You are assuming a JSON encoder exists for a given language. I'm not.