JSON parsing containing commas

Are there Python JSON parsers that will handle trailing commas?

(I use "JSON" from an external source and cannot control it.)

+4
source share
1 answer

Take PyYAML. JSON is a subset of YAML, so the YAML parser should parse most JSON. YAML grammar allows you to enter trailing commas in a sequence.

+7
source

All Articles