Module rune_modules::json [−][src]
Expand description
The native json
module for the Rune Language.
Usage
Add the following to your Cargo.toml
:
rune-modules = { version = "0.10.2", features = ["json"] }
Install it into your context:
let mut context = rune::Context::with_default_modules()?;
context.install(&rune_modules::json::module(true)?)?;
Use it in Rune:
ⓘ
use json;
fn main() {
let data = json::from_string("{\"key\": 42}");
dbg(data);
}
Functions
Construct the json
module.