Crate merde_json

Crate merde_json 

Source
Expand description

license: MIT/Apache-2.0 crates.io docs.rs

§merde_json

The merde logo: a glorious poop floating above a pair of hands

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§

JsonDeserializer
A JSON deserializer
JsonSerializer
Writes JSON to a Vec<u8>. None of its methods can fail, since it doesn’t target an io::Write. You can provide your own buffer via JsonSerializer::from_vec.

Traits§

JsonSerializerWriter
Something the JSON serializer can write to

Functions§

from_bytes
Deserialize an instance of type T from a byte slice of JSON text.
from_bytes_owned
Deserialize an instance of type T from a byte slice of JSON text, and return its static variant e.g. (CowStr<’static>, etc.)
from_str
Deserialize an instance of type T from a string of JSON text.
from_str_owned
Deserialize an instance of type T from 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.