whenever i try to serialize the dictionary i get the exception:
System.ArgumentException: Type
\'System.Collections.Generic.Dictionary`2[[Foo.DictionarySerializ
Use Newtonsoft (Newtonsoft.Json.dll) to serialize the Dictionary object and you'd be fine. It's a popular third party library you would have to download and include in your project as a reference.
See example below:
var _validationInfos = new Dictionary();
var serializedData = JsonConvert.SerializeObject(_validationInfos);