lib/JSON.php
static function decode(
		$json,
		$convertObjectsToArrays = false,
		$recursionDepth = 512, // same as PHP default
		$options = 0
		) {
		// Just use PHP's decode function
		return json_decode( $json, $convertObjectsToArrays, $recursionDepth, $options );
	}
static function decode(
		$json,
		$convertObjectsToArrays = false,
		$recursionDepth = 512, // same as PHP default
		$options = 0
		) {
		// Just use PHP's decode function
		return json_decode( $json, $convertObjectsToArrays, $recursionDepth, $options );
	}
static function decode ( $ json , $ convertObjectsToArrays = false , $ recursionDepth = 512 , // same as PHP default $ options = 0 ) { // Just use PHP's decode function return json_decode ( $ json , $ convertObjectsToArrays , $ recursionDepth , $ options ) ; }
Decodes a JSON content into an object or an array.

@see http://php.net/manual/en/function.json-decode.php

@param string	$json					The JSON content.
@param bool		$convertObjectsToArrays	When true, converts objects to arrays.
@param int		$recursionDepth			Recursion depth.
@param int		$options				Bit mask of JSON options. Currently
supports only JSON_BIGINT_AS_STRING.
Default is to cast large integers as
floats.

@return object | array | bool | null	NULL is returned if the JSON cannot
be decoded or if the encoded data is
deeper than the recursion limit.
Decodes a JSON content into an object or an array .