I'm using Json.Net's SelectToken method to query JSON using JSONPath with expressions like:
JToken acme = o.SelectToken("$.Manufacturers[?(@.Name == 'Acme Co')]");
-- http://www.newtonsoft.com/json/help/html/QueryJsonSelectTokenJsonPath.htm
Does JSONPath support XPath style String Functions?
By String Functions, I mean those described in How to use like in XPath?
For example, is there syntax for the contains()
method?
I've tried:
o.SelectToken("$.Manufacturers[?(contains(@.Name, 'Acme')]");
but JSON.Net complains of a syntax error (it doesn't like contains
).