Corefxlab: JsonReader does not handle escaped quotes in strings

Created on 28 Jun 2017  路  3Comments  路  Source: dotnet/corefxlab

JsonReader fails to read string values like the following:
"\"aaaa\""

area-System.Text.Json

Most helpful comment

The example string is invalid JSON. However, even if you correctly escaped the double-quote, the current POC reader would still not handle it. So, this is still a valid issue.

All 3 comments

This is not valid json though. Should we still support it?

{
   "property":""value""
}

image
https://jsonformatter.curiousconcept.com/

image
http://json.org/

The example string is invalid JSON. However, even if you correctly escaped the double-quote, the current POC reader would still not handle it. So, this is still a valid issue.

I just fixed the markup to show the inner quotes are escaped

Was this page helpful?
0 / 5 - 0 ratings