json_in_type-0.1.0 doesn't have any documentation.
json_in_type
Fast json encoder in rust, that does more at compile time, and less at run time. One notable feature is the ability to encode the structure of JSON objects in their type.
This allows for a very compact representation of objects in memory, and up to an order of magnitude better performance
than the traditional approach (used by serde's json!
marco, for instance) where JSON objects are stored as HashMaps.
Exemple use
extern crate json_in_type;
use *;
Performance
This library is generally faster than SERDE. Here are detailed comparison results on different json serialization tasks realized on an AMD Ryzen 5 1600X. See detailed benchmark results.
Encoding 8 nested json objects using a rust macro
Encoded object
Benchmark result
Encoding a very simple json object using a rust macro
Encoded object
Benchmark result
Encoding a very simple json object using #[derive(...)]
Encoded object
created from the following rust struct