How could I deserialize this JSON into an instance of
Dictionary<string, List<typeof(new {name=""; call=""})>>
the type is in the list doesn’t have to be anonymous.
{ "item a": [ { "name": "alpha", "call": "a" } ],
"item b": [],
"item c": [
{ "name" : "beta" , "call" : "b" },
{ "name" : "gamma", "call" : "g" },
{ "name" : "alpha", "call" : "a" }
]
}
Don’t use an anonymous type, use a “real” one. And JSON.NET can deserialize it fine: