json-spanned-value

Crates.iojson-spanned-value
lib.rsjson-spanned-value
version0.2.2
sourcesrc
created_at2020-09-28 20:31:46.460404
updated_at2020-10-10 21:22:23.942325
descriptionTrack the origin of your json values for better error reporting!
homepage
repositoryhttps://github.com/MaulingMonkey/json-spanned-value.git
max_upload_size
id293852
size109,998
(MaulingMonkey)

documentation

https://docs.rs/json-spanned-value/

README

json-spanned-value

GitHub crates.io docs.rs %23![forbid(unsafe_code)] rust: 1.46.0 License Build Status

Track the origin of your json values for better error reporting! The toml crate has toml-spanned-value for this. serde_json now has json-spanned-value.

The basic crates provide users with a Value type that can be used for custom parsing logic. However, this type doesn't support span information. In some cases it's possible to extract line/column information out of error messages, but that's awkward and error prone - often reporting errors on the next line (e.g. where the seek position of the underlying reader has skipped to.)

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 32

cargo fmt