← 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
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/json/json_last_error.rs).
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.