kgabis/parson

Is it possible to add option to ignoring the last comma?

little-brother opened this issue · 3 comments

Some software produce invalid json. It will be great to parse their results.

[10, 20, 30, ]
...
{"a": 10, "b": 20, "c": 30, }

Done!

This is a non-standard form.
Would it be possible to have an option to switch back to the previous behavior?

Is there a good reason for not accepting a trailing comma? It's not standard but very common.