[eluser]GSV Sleeper Service[/eluser]
RTFM!
Code:
/**
* public method
*
* FastJSON::decode(params:String[, useStdClass:Boolean]):*
*
* @param String valid JSON encoded string
* @param Bolean uses stdClass instead of associative array if params contains objects (default false)
* @return * converted variable or null
* is params is not a JSON compatible string.
* @note 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.
*
* @example
* FastJSON::decode('{"param":"value"}'); // associative array
* FastJSON::decode('{"param":"value"}', true); // stdClass
* FastJSON::decode('["one",two,true,false,null,{},[1,2]]'); // array
*/