deser-stringified

Crates.iodeser-stringified
lib.rsdeser-stringified
version0.1.0
created_at2025-04-11 21:51:10.032235+00
updated_at2025-04-11 21:51:10.032235+00
descriptionConveniently deserialize stringified structured data in fields
homepage
repositoryhttps://github.com/stella3d/deser-stringified
max_upload_size
id1630370
size14,416
Stella Cannefax (stella3d)

documentation

README

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.

Commit count: 11

cargo fmt