mangiucugna/json_repair

Handle missing comma

liangjs opened this issue · 1 comments

Describe the bug
Can we handle missing comma when parsing dict?

To Reproduce

json_repair.loads('''{
  "number": 1,
  "reason": "According..."
  "ans": "YES"
}''')

This code produces {'number': 1, 'reason': 'According..."\n "ans": "YES'}.
But we expect {'number': 1, 'reason': 'According...', 'ans': 'YES'}.

Thanks @liangjs, this is a regression as I changed the way quotes are handled to support many more cases.