lil-json 0.1.7

serialize & deserialize JSON in no_std
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::io::stdout;
use lil_json::FieldBuffer;

fn main() {
    [
        ("some_number", 12345).into(),
        ("some_string", "hello world!").into(),
        ("some_boolean", true).into()
    ]
    .as_json_object()
    .serialize_std(stdout())
    .unwrap();
}

// output: {"some_number":12345,"some_string":"hello world!","some_boolean":true}