Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Bad Case: {"story": {""5": "10-10"}} #20

Open
billwang233 opened this issue Jan 2, 2024 · 0 comments
Open

A Bad Case: {"story": {""5": "10-10"}} #20

billwang233 opened this issue Jan 2, 2024 · 0 comments

Comments

@billwang233
Copy link

Output is bad when fixing the following json:

from half_json.core import JSONFixer

f = JSONFixer()

invalid_json = """
{"story": {""5": "10-10"}}
""".strip()

f.fix(invalid_json)

output result:

FixResult(success=True, line='{"story": {"":5,": ":10,"-10":null}}', origin=False)

Expected output result:

{"story": {"5": "10-10"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant