shapely-json
A serialization and deserialization library for JSON using the shapely runtime reflection system.
Features
- Simple JSON deserialization for any type implementing the
Shapelytrait - Detailed error reporting with context
- Support for nested structs and scalar values
Example
use Shapely;
use from_json;
let json = r#"{"name": "Alice", "age": 30}"#;
let mut partial = partial;
from_json.expect;
let person = partial.;
assert_eq!;
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.