Function json_encode
Wrapper for JSON encoding that throws when an error occurs.
Namespace: GuzzleHttp
Link: http://www.php.net/manual/en/function.json-encode.php
Located at functions.php
Link: http://www.php.net/manual/en/function.json-encode.php
Located at functions.php
mixed |
$value |
The value being encoded |
integer |
$options = 0 |
JSON encode option bitmask |
integer |
$depth = 512 |
Set the maximum depth. Must be greater than zero. |
string
|
string |
InvalidArgumentException
|
if the JSON cannot be encoded. |