# rust-json-forensics **Repository Path**: mirrors_getsentry/rust-json-forensics ## Basic Information - **Project Name**: rust-json-forensics - **Description**: Lossily convert non-standard JSON and overflowing integers to something serde-json can parse - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rust-json-forensics This crate exposes a function that takes a byteslice and: * Converts the invalid JSON tokens `NaN` and `Infinity` into `0` * Replaces all integers that would cause an overflow in `serde-json` with `0` This is just to get the JSON to parse. All operations happen in-place. This is useful because the Python JSON library traditionally emits invalid JSON if `NaN` and `Infinity` values are encountered. If you have to support clients like this, this wrapper can be used to still deserialize such a JSON document. Successor of [python-json-read-adapter](https://github.com/mitsuhiko/python-json-read-adapter)