Skip to content

Unescaped " not parsed correctly #32

@alexey-r-work

Description

@alexey-r-work

Hi, with v0.9.1 on a simple JSON:

Input: {"name": "White 17" Microwave", "price": "50.00"}
Expected output: {"name": "White 17\" Microwave", "price": "50.00"}
Actual output: Found } that I can't handle at line -1:-1

Interesting that if I replace 50.00 with a non-number (e.g. Fifty), it doesn't fail but produces incorrect output (leaves only "name" and loses space after "):

Input: {"name": "White 17" Microwave", "price": "Fifty"}
Expected output: {"name": "White 17\" Microwave", "price": "Fifty"}
Actual output: {"name":"White 17\"Microwave\", \"price\": \"Fifty\"}"}

Can something be done here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions