2 releases

0.1.0 Feb 4, 2022
0.1.0-dev.2 Dec 31, 2021

#2068 in Encoding

32 downloads per month

MIT/Apache

13KB
204 lines

transmog-json

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);

Open-source Licenses

This project, like all projects from Khonsu Labs, are open-source. This repository is available under the MIT License or the Apache License 2.0.

To learn more about contributing, please see CONTRIBUTING.md.

Dependencies

~0.7–1.5MB
~33K SLoC