Crates.io | json-forensics |
lib.rs | json-forensics |
version | 0.1.1 |
source | src |
created_at | 2023-03-30 11:35:43.378857 |
updated_at | 2023-03-30 11:35:43.378857 |
description | A crate that adds a read adapter to deal with bad Python caused JSON payloads (NaNs and Infinities) |
homepage | https://github.com/getsentry/rust-json-forensics |
repository | |
max_upload_size | |
id | 824987 |
size | 12,750 |
This crate exposes a function that takes a byteslice and:
NaN
and Infinity
into 0
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