Closed AloXado320 closed 6 months ago
Hi! Thank for reporting the bug, one note about numbers in canonical JSON though. The expected output here is:
{ "words": "abcdef", "numbers": 12345, "words2": "ghijkl" }
So the library should fix this by removing the dangling "
and not eating the following key
Describe the bug If there's a missing out quote at the left of a json define, it doesn't repair properly
To Reproduce Steps to reproduce the behavior: Run this json file with
json_repair
Gets parsed like this
{'words': 'abcdef', 'numbers': 12345, ',\n ': 'ords2', 'ghijkl': ''}
Expected behavior Proper output:
{'words': 'abcdef', 'numbers': '12345', 'words2': 'ghijkl'}