using System.Collections.Generic;
public static class extent {
public static ICollection<KeyValuePair<U,V>> To<U,V>(this Dictionary<U,V> d) {
return d.ToHashSet() as ICollection<KeyValuePair<U,V>>;
public static void Main()
var str = @"{'greeting':[{'greet1': 'hey','greet2': 'hi'}],'bye': [{'bye1': 'adios'}]}";
var a = JsonConvert.DeserializeAnonymousType(
System.Uri.UnescapeDataString(str),
new Dictionary<Object, dynamic>());