json-repair is a simple package that can be used to fix an invalid json string.