better custom type, fix List & Dictionary deserialization
Thanks but it will break existing use of RegisterCustomType()
Hi, I am not sure this is related, but I found that if the custom type contains "Dictionary" in the class name, fastJSON always throws the following when deserialize.
System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.Dictionary
2[System.String,System.Object]' to type 'System.Collections.Generic.List1[System.Object]'. at fastJSON.deserializer.ParseDictionary(Dictionary2 d, Dictionary2 globaltypes, Type type, Object input) at fastJSON.deserializer.ToObject(String json, Type type) at fastJSON.JSON.ToObject(String json, Type type)