skolodyazhnyy / json-stream

JSON stream reader, writer and parser
MIT License
63 stars 10 forks source link

Doesn't parse strings with escaped backslashes #5

Closed Lisio closed 8 years ago

Lisio commented 8 years ago

Such JSON file will not be parsed:

[
    {
        "field": "some \\value\\"
    }
]

Exception will be raised:

Exception 'Bcn\Component\Json\Exception\ReadingError' with message 'String not terminated correctly 68'

In some cases with complex object structure it can give the Unexpected object ending error. It can also be a cause of problems for #1.