Closed vilinski closed 4 years ago
Maybe this code is causing this bug. This code works on policy like "Find first double quote,but if it is leaded by backslash,it is not a end of string.Otherwise,it is a end of string" This policy doesn't work well in case of this.
https://github.com/neuecc/Utf8Json/pull/220
I made this pull request.
Actually,your issue was not correct.
You need "\"\\\\\""
for representing single backslash on Json.
But it was useful to find another issue.Thanks!
Cool, hope it will be merged
Repro - add this to
tests/Utf8Json.Tests/StringEscapeTest.cs
the string, containing a single backslash can't be deserialized. The same bug is also reproducebla for other strings with a backslash at end.