You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have the JPath class and a slightly modified version of its Evaluate(JToken obj, JsonSelectSettings? settings) method publicly accessible to be able to use pre-parsed versions of JSON Paths in query intensive applications like in this mocked code that attempts to check if a JObject instance matches any of multiple rules in a large collection.
List<string>veryLargeCollectionOfJPathRules=["$..childN.propA","$..childN.childM.propA",];varcompiledRules=veryLargeCollectionOfJPathRules.ConvertAll(path =>newJPath(path));// to have JPath exposedvarhasMatch=compiledRules.Any(rule =>rule.Evaluate(objectUnderTest).Any());// to have Evaluate() exposed
The text was updated successfully, but these errors were encountered:
It would be great to have the
JPath
class and a slightly modified version of itsEvaluate(JToken obj, JsonSelectSettings? settings)
method publicly accessible to be able to use pre-parsed versions of JSON Paths in query intensive applications like in this mocked code that attempts to check if aJObject
instance matches any of multiple rules in a large collection.The text was updated successfully, but these errors were encountered: