Skip to content

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

Description

@billwang233

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"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions