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§
- Json
Deserializer - A JSON deserializer
- Json
Serializer - 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.
Traits§
- Json
Serializer Writer - Something the JSON serializer can write to
Functions§
- from_
bytes - Deserialize an instance of type
Tfrom a byte slice of JSON text. - from_
bytes_ owned - Deserialize an instance of type
Tfrom a byte slice of JSON text, and return its static variant e.g. (CowStr<’static>, etc.) - from_
str - Deserialize an instance of type
Tfrom a string of JSON text. - from_
str_ owned - Deserialize an instance of type
Tfrom a string of JSON text, and return its static variant e.g. (CowStr<’static>, etc.) - to_
string - Serialize the given data structure as a String of JSON.
- to_vec
- Serialize as JSON to a
Vec<u8> - to_
writer - Serialize the given data structure as JSON into the I/O stream.