Example #1
0
 private IEnumerable <string> getValuesInPath(Newtonsoft.Json.Linq.JObject obj, string propertyPath)
 {
     IEnumerable <Newtonsoft.Json.Linq.JToken> values = obj.SelectTokens(propertyPath, false); if (values != null && values.Any() == true)
     {
         foreach (Newtonsoft.Json.Linq.JToken value in values)
         {
             yield return(value.ToString());
         }
     }
 }