Function rune_modules::json::module

source ·
pub fn module(_stdio: bool) -> Result<Module, ContextError>
Expand description

Module for processing JSON.

§Examples

let object = #{"number": 42, "string": "Hello World"};
let object = json::from_string(json::to_string(object)?)?;
assert_eq!(object, #{"number": 42, "string": "Hello World"});