a trailing comma in /object/wired/invisiblesound/invisiblesoundhidden.frames)
After this PR we are catching this error and instead of rethrowing it (current behavior) we clean up the JSON and retry with the now valid JSON. I'm not cleaning every JSON but only the 2 invalid ones for performance reasons.
This PR fixes also some style issues, which should reduce code duplication too and make Codacy finally happy with the 1.0 support PR (at least I hope so).
This PR fixes the 2 instances during asset import were pythons strict JSON decoder would throw because of a invalid JSON:
`instead of
{}in
/monster/dungeon/glitchspider/default.frames`/object/wired/invisiblesound/invisiblesoundhidden.frames
)After this PR we are catching this error and instead of rethrowing it (current behavior) we clean up the JSON and retry with the now valid JSON. I'm not cleaning every JSON but only the 2 invalid ones for performance reasons.
This PR fixes also some style issues, which should reduce code duplication too and make Codacy finally happy with the 1.0 support PR (at least I hope so).