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§

  • 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 an io::Write. You can provide your own buffer via JsonSerializer::from_vec.
  • Allows writing JSON objects

Enums§

Traits§

  • Implemented by anything that can be serialized to JSON.

Functions§

  • Deserialize an instance of type T from a string of JSON text.
  • Deserialize an instance of type T from 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.