Skip to main content

Module json

Module json 

Source

Functions§

json_decode
Converts a JSON string into a deserialized Rust struct/type T. Human-friendly utility similar to json_decode in PHP / JavaScript JSON.parse.
json_encode
Converts any serializable data into a JSON string, returning a default empty JSON string on error. Human-friendly utility similar to json_encode in PHP / JavaScript JSON.stringify.