2 releases
0.1.1 | Apr 6, 2023 |
---|---|
0.1.0 | Apr 6, 2023 |
#1451 in Development tools
22 downloads per month
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
~300–760KB
~18K SLoC