| Crates.io | deser-stringified |
| lib.rs | deser-stringified |
| version | 0.1.0 |
| created_at | 2025-04-11 21:51:10.032235+00 |
| updated_at | 2025-04-11 21:51:10.032235+00 |
| description | Conveniently deserialize stringified structured data in fields |
| homepage | |
| repository | https://github.com/stella3d/deser-stringified |
| max_upload_size | |
| id | 1630370 |
| size | 14,416 |
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
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.