Newtonsoft.Json
Newtonsoft.Json copied to clipboard
Incorrect parsing of JSONPath query
The following JSONPath selector fails
$.Sensors[?(@.SensorId=="left-id")].SensorName
to parse with the message
Unexpected character while parsing path query: "
Here is some minimal example to reproduce it:
var token = new Newtonsoft.Json.Linq.JValue(false);
token.SelectToken("$.Sensors[?(@.SensorId==\"left-id\")].SensorName", false);