Closed liangjs closed 6 months ago
More generally, we can test with this code
json_repair.loads("""{
"b": "xxxxx", // comment a.b
"c": "a"
}""")
It produces a weird result {'b': 'xxxxx', '.': 'c": "a'}
Hi, I tried this with the latest version of the library and I couldn't reproduce. I am pushing a fix because I noticed that there is a different edge case but I can't reproduce this specific edge case using latest.
Thanks. After checking out to the latest version, it is fixed.
Consider the following code:
It should be
{'b': 'xxxxx'}
. But the library outputs{'b': 'xxxxx', 0.2: ''}
.