using Newtonsoft.Json.Linq;
public static void Main()
""someProperties"" : ""someValues"",
""$ROOT_QUERY.searchResults({\""path\"":\""/some/url\""}).features"":
""propertyOtherA"": ""valueA"",
""propertyOtherB"": ""null"",
""$ROOT_QUERY.searchResults({\""path\"":\""/some/url\""}).otherText"":
""propertyOtherA"": ""valueA"",
""propertyOtherB"": ""null"",
var parsed = JObject.Parse(json);
var someUrl = "/some/url";
var path = "['$ROOT_QUERY.searchResults({\"path\":\"" + someUrl + "\"}).features']";
var token = parsed.SelectToken("$." + path);
Console.WriteLine(token);
var simplePath = "$ROOT_QUERY.searchResults({\"path\":\"/some/url\"}).features";
Console.WriteLine(parsed[simplePath]);