#json #deserialize-json #serialization #declarative-macro

merde_json

JSON serialization and deserialization for merde, via jiter

33 stable releases (6 major)

new 8.0.2 Nov 24, 2024
6.2.1 Oct 7, 2024
5.1.0 Sep 20, 2024
4.0.2 Sep 14, 2024
1.0.1 Jul 29, 2024

#925 in Encoding

Download history 9/week @ 2024-08-07 470/week @ 2024-08-14 27/week @ 2024-08-21 5/week @ 2024-08-28 132/week @ 2024-09-04 1240/week @ 2024-09-11 620/week @ 2024-09-18 120/week @ 2024-09-25 811/week @ 2024-10-02 199/week @ 2024-10-09 21/week @ 2024-10-16 2/week @ 2024-10-23 112/week @ 2024-10-30 48/week @ 2024-11-06 6/week @ 2024-11-13 284/week @ 2024-11-20

450 downloads per month
Used in 3 crates

Apache-2.0 OR MIT

210KB
5.5K SLoC

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.


lib.rs:

Adapter types from tokio::io::AsyncWrite to JsonSerializerWriter

Dependencies

~2–7.5MB
~63K SLoC