Crate transmog_json

source ·
Expand description

Transmog implementation of the JSON format, powered by the serde_json crate.

transmog-json forbids unsafe code crate version Documentation for main branch

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

Structs

  • Json implementor of [Format].

Enums