v1.9.8 doesn't work

Jun 7, 2012 at 6:46 AM

This simple test code does not work in v1.9.8.  ToObject() returns null, objDe2 is null:


var test = new List<int>();



string dataw = fastJSON.JSON.Instance.ToJSON(test);           

var objDe2 = fastJSON.JSON.Instance.ToObject<List<int>>(dataw);


The code has the same error on my other tests with dictionaries, as well.

Jun 7, 2012 at 7:22 AM

Root level list/arrays are not supported at the moment. This will work if you put the list in a class.

Jun 7, 2012 at 4:17 PM

Well that's a pretty big restriction and makes the library unusable in our case (I don't want to have to wrap lists and dictionaries in a class every time I want to use them).  Hopefully you will fix this soon.  Thanks.