Newtonsoft.Json icon indicating copy to clipboard operation
Newtonsoft.Json copied to clipboard

Incorrect parsing of JSONPath query

Open tmoers opened this issue 10 months ago • 2 comments

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);

tmoers avatar Apr 24 '24 07:04 tmoers