/home/aurelien/workspace/oscss_test/81/trunk/catalog/common/classes/FastJSON.php

public method FastJSON::decode(params:String[, useStdClass:Boolean]):*

Parameters:
String valid JSON encoded string
Bolean uses stdClass instead of associative array if params contains objects (default false)
Returns:
* 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.

FastJSON::decode('{"param":"value"}'); // associative array FastJSON::decode('{"param":"value"}', true); // stdClass FastJSON::decode('["one",two,true,false,null,{},[1,2]]'); // array