src/Json.php
public static function decode($json, $options = 0, $depth = 512) {
		$data = json_decode($json, true, $depth, $options);
		self::throwExceptionOnError($data);

		return $data;
	}
public static function decode($json, $options = 0, $depth = 512) {
		$data = json_decode($json, true, $depth, $options);
		self::throwExceptionOnError($data);

		return $data;
	}
public static function decode ( $ json , $ options = 0 , $ depth = 512 ) { $ data = json_decode ( $ json , true , $ depth , $ options ) ; self :: throwExceptionOnError ( $ data ) ; return $ data ; }
Decodes a JSON string to an array.

@param string $json The json string being decoded. This only works with UTF-8 encoded strings.
@param int $options Bitmask of JSON decode options. Currently only OBJECT_AS_ARRAY, BIGINT_AS_STRING is supported (default is to cast large integers as floats)
@param int $depth User specified recursion depth.
@throws JsonException if something gone wrong
@return array Returns the value encoded in json in appropriate PHP type. Values true, false and null are returned as TRUE, FALSE and NULL respectively.
Decodes a JSON string to an array .