toonconv 0.1.0

A Rust CLI tool for converting JSON to TOON (Token-Oriented Object Notation) format
Documentation
1
2
3
4
5
6
7
8
9
10
11
use serde_json::json;
fn main() {
    let v = json!({"inf": std::f64::INFINITY, "nan": std::f64::NAN});
    println!("VALUE: {:?}", v);
    println!("TO_STRING: {}", v);
    if let serde_json::Value::Object(map) = &v {
        for (k, v) in map {
            println!("{} => {:?}", k, v);
        }
    }
}