This project is read-only.

Boolean serialize error

Jul 8, 2011 at 5:37 PM

string testStr = JSON.Instance.ToJSON(true);
bool b =(bool)JSON.Instance.ToObject(testStr);

The second line will throw a NullReferenceException.

Jan 19, 2012 at 2:49 PM

fastJSON requires an object at the base level, so it will not work with value types like your example.