json_in_type
json_in_type copied to clipboard
Fast json encoder in rust, that encodes the structure of JSON values in their types
`FormatterWriter` has to deal with an inherent conflict: `fmt::Formatter` wants to write &str values (required to be valid UTF-8) while `io::Write` can be used to write arbitrary byte slices. This...
How would one map an iterator of different `json_object!` (i.e. from a match expression) into a single list – for example, a collection of GeoJSON features (each of which can...
I've quite enjoyed `json_in_type` being faster at JSON serialization than `serde`. Thanks a lot for creating this crate! Though, there were some itches that required scratching. One of them is...
Currently, in order to use `json_object!` macro you also have to import `inlined_json_object!` macro. This is codified as the recommended way to just `use json_in_type::*;` and import *everything* exported by...
I have an API which has fields written like so: ```json { "inventory-location": "uuid", "inventory-parts": ["uuid", "uuid"], } ``` Although this does not work here, given that it assumes to...
Many libraries and frameworks use the [`Serialize`](https://docs.serde.rs/serde/ser/trait.Serialize.html) trait from serde. It has become a de-facto standard. Serializing through this trait would be a little slower because of the limitations it...