private static string TryGetValue(this JsonElement.ObjectEnumerator target, string propertyName) { var ret = string.Empty; var property = target.FirstOrDefault(t => t.Name.Equals(propertyName, StringComparison.OrdinalIgnoreCase)); ret = property.Value.ToString(); return(ret); }
private static JsonElement GetPropertyValue(JsonElement.ObjectEnumerator properties, string propertyName) { return(properties.FirstOrDefault(x => x.Name.Equals(propertyName)).Value); }