jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
333 stars 82 forks source link

Extra trailing commas #569

Closed jacobwilliams closed 2 months ago

jacobwilliams commented 2 months ago

I think JSON-Fortran is parsing files that have extraneous trailing commas? E.g., {"a" : [1,2,3,]}. I don't remember if that was by choice or is just inadvertent. Maybe add an option to check for this when parsing (default would probably be to allow it so as not to break backward compatibility). But, technically, it is invalid JSON.

jacobwilliams commented 2 months ago

Note that this is actually a JSON5 feature (see #398)