protected static jsonDecode ( string $json, boolean $assoc = false, integer $depth = 512, integer $options ) : mixed |
$json |
string |
The json string being decoded. This function only works with UTF-8 encoded data. |
$assoc |
boolean |
When TRUE, returned objects will be converted into associative arrays. |
$depth |
integer |
User specified recursion depth. |
$options |
integer |
Bitmask of JSON decode options. Currently only JSON_BIGINT_AS_STRING is supported (default is to cast large integers as floats) |
return |
mixed |
The value encoded in json in appropriate PHP type. NULL is returned if the json cannot be decoded or if the encoded data is deeper than the recursion limit. |