← All docs
json_last_error_msg()
Returns the error string of the last json_encode() or json_decode() call.
json_last_error_msg()
function json_last_error_msg(): string
Returns the error string of the last json_encode() or json_decode() call.
Parameters: none.
Returns: string
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how json_last_error_msg is implemented in the compiler, see the internals page.