facet-json
Thanks to all individual and corporate sponsors, without whom this work could not exist:
Provides JSON serialization and deserialization for any type that implements Facet.
Example
# use Facet;
# use Facet;
# use facet_trait as facet;
let json = r#"{"name": "Alice", "age": 30}"#;
let user: User = from_str.unwrap;
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.