Expand description
§merde_json
Logo by MisiasArt
Adds JSON serialization/deserialization support for merde.
You would normally add a dependency on merde
directly, enabling its json feature.
§Implementation
The underlying parser (including aarch64 SIMD support, bignum support, etc.) has been taken wholesale from the jiter crate for now.
An issue has been opened to discuss sharing a core.
Structs§
- A guard object for writing an array.
- A JSON deserializer
- Writes JSON to a
Vec<u8>. None of its methods can fail, since it doesn’t target anio::Write. You can provide your own buffer viaJsonSerializer::from_vec. - Allows writing JSON objects
Enums§
- Unifies MerdeError and [JiterError] into a single type
Traits§
- Implemented by anything that can be serialized to JSON.
Functions§
- Deserialize an instance of type
Tfrom a string of JSON text. - Deserialize an instance of type
Tfrom a string of JSON text, and return its static variant e.g. (CowStr<’static>, etc.) - Serialize the given data structure as a String of JSON.
- Serialize the given data structure as a JSON byte vector.
- Serialize the given data structure as JSON into the I/O stream.