Boolean serialize error

Jul 8, 2011 at 4:37 PM

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

The second line will throw a NullReferenceException.

Coordinator
Jan 19, 2012 at 1:49 PM

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