/** * Decodes a javascript string into PHP variable. * This method invokes {@TJSON} utility class to perform the decoding. * @param string string to be decoded * @return mixed decoded variable */ public static function jsonDecode($value) { if (self::$_json === null) { self::$_json = Prado::createComponent('System.Web.Javascripts.TJSON'); } return self::$_json->decode($value); }