This project is read-only.

CAN NOT Serializer

Jul 30, 2011 at 11:32 AM

sample code:
 
1,====================================================================
KeyValuePair kv = new KeyValuePair(1, "123");
string f = fastJSON.JSON.Instance.ToJSON(kv);
 
2,===============.NET 3.5 or 4.0======================================
object o = new { Cycle = new { ID = 1, Name = "2" }, DDD = new { Age = 33, Sex = true } };
string f = fastJSON.JSON.Instance.ToJSON(o);
 

SORRY, MY ENGLISH IS VERY POOR!!!

Jan 19, 2012 at 2:46 PM
Edited Jan 19, 2012 at 2:47 PM

KeyValuePair is a struct not an object, so it is not supported at the base level, you use them inside a class.

Anonymous types are not supported at the moment.