I am trying to serialize a Dictionary to JSON, and get the following exception:
new JavaScriptSerializer().Serialize(mydict)`
Ty
var dict = mapping.ToDictionary(item => item.Key.ToString(), item => item.Value.ToString());`
that will convert any Dictionary to Dictionary and serialization then works.
Dictionary