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