6 releases

0.1.5 Oct 21, 2021
0.1.4 Oct 21, 2021

#236 in #json-parser


Used in dorea

Apache-2.0

19KB
473 lines

doson

Dorea Struct Parser


lib.rs:

doson - DataValue Parser

use doson::DataValue;
use std::collections::HashMap;

DataValue::String("Hello World".to_string());
DataValue::Number(1_f64);
DataValue::Boolean(true);
DataValue::List(vec![
    DataValue::Number(3.14_f64),
]);
DataValue::Dict(HashMap::new());
DataValue::Tuple((
    Box::new(DataValue::Number(1_f64)),
    Box::new(DataValue::Number(2_f64)),
));

Dependencies

~1.7–2.7MB
~56K SLoC