Function json_decode
Wrapper for json_decode that throws when an error occurs.
Namespace: GuzzleHttp
Link: http://www.php.net/manual/en/function.json-decode.php
Located at functions.php
Link: http://www.php.net/manual/en/function.json-decode.php
Located at functions.php
string |
$json |
JSON data to parse |
boolean |
$assoc = false |
<p>When true, returned objects will be converted into associative arrays.</p> |
integer |
$depth = 512 |
User specified recursion depth. |
integer |
$options = 0 |
Bitmask of JSON decode options. |
mixed
|
mixed |
InvalidArgumentException
|
if the JSON cannot be decoded. |