Crate transmog_json
source ·Expand description
Transmog implementation of the JSON format, powered by the serde_json crate.
This crate provides a Format
trait implementation using the Json
type:
use transmog::{Format, OwnedDeserializer};
use transmog_json::Json;
let json = Json::default();
let serialized = json.serialize(&42_u64).unwrap();
let deserialized: u64 = json.deserialize_owned(&serialized).unwrap();
assert_eq!(deserialized, 42);
Re-exports
pub use serde_json;
pub use transmog;
Structs
- Json implementor of [
Format
].
Enums
- Errors from
Json
.