stk-json

Crates.iostk-json
lib.rsstk-json
version0.2.1
sourcesrc
created_at2020-08-06 13:14:55.127801
updated_at2020-08-06 13:27:04.101819
descriptionAn JSON module based on serde_json for STK.
homepagehttps://github.com/udoprog/stk
repositoryhttps://github.com/udoprog/stk
max_upload_size
id273652
size3,798
John-John Tedro (udoprog)

documentation

https://docs.rs/stk-json

README

Build Status

stk-json

The json package, providing access to functions to serialize and deserialize json.

Usage

Add the following to your Cargo.toml:

stk = "0.2"
stk-json = "0.2"

Install it into your context:

let mut context = stk::Context::with_default_packages()?;
context.install(stk_json::module()?)?;

Use it in Rune:

use json;

fn main() {
    let data = json::from_string("{\"key\": 42}");
    dbg(data);
}
Commit count: 1290

cargo fmt