json_last_error
Returns the last error occurred
&reftitle.description;
intjson_last_error
Returns the last error (if any) occurred by last JSON parsing.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
Returns an integer, the value can be one of the following
constants:
JSON error codes
Constant
Meaning
JSON_ERROR_NONE
No error has occurred
JSON_ERROR_DEPTH
The maximum stack depth has been exceeded
JSON_ERROR_CTRL_CHAR
Control character error, possibly incorrectly encoded
JSON_ERROR_SYNTAX
Syntax error
&reftitle.examples;
json_last_error example
]]>
&example.outputs;
&reftitle.seealso;
json_decode