Crates.io | runestick-json |
lib.rs | runestick-json |
version | 0.3.0 |
source | src |
created_at | 2020-08-07 15:29:23.339255 |
updated_at | 2020-09-02 17:16:19.03825 |
description | An JSON module based on serde_json for runestick. |
homepage | https://github.com/rune-rs/rune |
repository | https://github.com/rune-rs/rune |
max_upload_size | |
id | 274033 |
size | 3,846 |
The json package, providing access to functions to serialize and deserialize json.
Add the following to your Cargo.toml
:
runestick = "0.2"
runestick-json = "0.2"
Install it into your context:
let mut context = runestick::Context::with_default_packages()?;
context.install(runestick_json::module()?)?;
Use it in Rune:
use json;
fn main() {
let data = json::from_string("{\"key\": 42}");
dbg(data);
}