SelectNodes() public method

public SelectNodes ( object obj, string expr ) : Dev2.Util.JsonPathNode[]
obj object
expr string
return Dev2.Util.JsonPathNode[]
        public void ApplyPath()
        {
            if(String.IsNullOrEmpty(RequestResponse) || String.IsNullOrEmpty(JsonPath))
            {
                return;
            }

            JsonPath = JsonPath.Trim();

            try
            {
                var json = JObject.Parse(RequestResponse);
                var context = new JsonPathContext { ValueSystem = new JsonNetValueSystem() };
                var values = context.SelectNodes(json, JsonPath).Select(node => node.Value);
                var newResponseValue = JsonConvert.SerializeObject(values);

                JsonPathResult = newResponseValue;
            }
            catch(JsonException je)
            {
                Dev2Logger.Log.Error(je);
            }
        }