This code:
import json s = \'{ \"key1\": \"value1\", \"key2\": \"value2\", }\' json.loads(s)
produces this error in Python 2:
JSON specification doesn't allow trailing comma. The parser is throwing since it encounters invalid syntax token.
You might be interested in using a different parser for those files, eg. a parser built for JSON5 spec which allows such syntax.