Json.NET JSONPath query not returning expected results

Json.NET’s JSONPath parser allows the filter (script) expression [?( )] to query for nested properties inside child objects of the candidate array item(s). Thus var test = json.SelectTokens(@”$.projects[?(@.client.code == ‘DEF’)].client”); returns, as desired, [ { “code”: “DEF”, “name”: “Client 2” } ] Working .Net fiddle. Upon experimentation it seems none of the JSONPath implementations at … Read more

tech