Show HN: Deserialize incomplete or broken JSON with Serde (docs.rs)
I made a library that lets you parse incomplete JSON in Rust with Serde. So you can ingest a stream of JSON, and parse the partial input at any stage. No JSON Lines needed, this works for any schema.
We simply wrap serde_json, and when it reports an error, we safely bring parsing to a halt.
As this library is just wraps another parser, it also works for YAML and probably many other formats. I'd love to hear if you try with another format!
0 comments
[ 3.0 ms ] story [ 11.8 ms ] threadNo comments yet.