1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 11, 2025 |
---|
#802 in Encoding
9KB
142 lines
deser-stringified
sometimes, due to unfortunate layers of nesting, joining different systems, or whatever else, you get data as a string that's inside other, more structured data.
it'd be nice to be able to serde
that data without doing the intermediate string handling.
this is experimental
special thanks
to this bluesky poster who responded to my tweet asking about a better way of deserializing stringified data:
hmmm what if you write a custom deserializer with a visit_str that calls into serde_json?
play.rust-lang.org?version=stab...
— ari :3 🏳️⚧️ (@ari.gf) April 10, 2025 at 3:32 PM
i've used a more generic form of that approach in this crate.
Dependencies
~0.6–1.8MB
~39K SLoC