2 releases
0.1.1 | Apr 6, 2023 |
---|---|
0.1.0 | Apr 6, 2023 |
#1406 in Development tools
97KB
2.5K
SLoC
jsonto
json string to frequently used programming languages type, it's lightweight and fast
example
fn main() {
let input_str = r#"{
"code": "country",
"type": "PROPERTY_INT",
"value": "国家"
}"#;
let mut options = jsonto::Options::default();
options.output_mode = jsonto::OutputMode::Rust;
let result = jsonto::codegen("property", input_str, options).unwrap();
println!("-----auto genaration-----\n{}", result);
}
Dependencies
~0.4–0.8MB
~20K SLoC