PHPJSONjson_last_error

Returns the last error occurred during JSON encoding/decoding.

Syntax

json_last_error(): int