← 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
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_msg.rs).
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.