python-json-read-adapter

Crates.iopython-json-read-adapter
lib.rspython-json-read-adapter
version0.1.0
sourcesrc
created_at2018-12-19 10:13:38.963197
updated_at2018-12-19 10:13:38.963197
descriptionA crate that adds a read adapter to deal with bad Python caused JSON payloads (NaNs and Infinities)
homepagehttps://github.com/mitsuhiko/python-json-read-adapter
repository
max_upload_size
id102696
size8,703
Armin Ronacher (mitsuhiko)

documentation

README

python-json-read-adapter

This crate implements a Read adapter that converts the invalid JSON tokens NaN and Infinity into other tokens without otherwise distorting the stream. It achieves this by converting NaN and Infinity into 0.0.

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.

This is just a way to get this to parse and 0.0 is the only value that can be inserted in a standardized way that fits without changing any of the positions.

Commit count: 0

cargo fmt