Crates.io | transmog-json |
lib.rs | transmog-json |
version | 0.1.0 |
source | src |
created_at | 2021-12-31 17:03:47.244166 |
updated_at | 2022-02-04 22:54:53.241539 |
description | Json adaptor for Transmog |
homepage | |
repository | https://github.com/khonsulabs/transmog |
max_upload_size | |
id | 505863 |
size | 9,043 |
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);
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.