← All docs

json_last_error()

Returns the last error (if any) occurred during the last JSON encoding/decoding.

json_last_error()

function json_last_error(): int

Returns the last error (if any) occurred during the last JSON encoding/decoding.

Parameters: none.

Returns: int

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how json_last_error is implemented in the compiler, see the internals page.