public function decode(string
$data,
string
$format,
array
$context )
Parameters
$data
—
string
The encoded JSON string to decode
$format
—
string
Must be set to JsonEncoder::FORMAT
$context
—
array
An optional set of options for the JSON decoder; see below The $context array is a simple key=>value array, with the following supported keys:
json_decode_associative: boolean If true, returns the object as associative array. If false, returns the object as nested StdClass If not specified, this method will use the default set in JsonDecode::__construct
json_decode_recursion_depth: integer Specifies the maximum recursion depth If not specified, this method will use the default set in JsonDecode::__construct
json_decode_options: integer Specifies additional options as per documentation for json_decode. Only supported with PHP 5.4.0 and higher