public method FastJSON::decode(params:String[, useStdClass:Boolean]):*
String valid JSON encoded string Bolean uses stdClass instead of associative array if params contains objects (default false)
- * converted variable or null is params is not a JSON compatible string.
- This method works in an optimist way. If JSON string is not valid the code execution will die using exit. This is probably not so good but JSON is often used combined with XMLHttpRequest then I suppose that's better more protection than just some WARNING. With every kind of valid JSON string the old error_reporting level and the old error_handler will be restored.