Crates.io | json-tools |
lib.rs | json-tools |
version | 1.1.3 |
source | src |
created_at | 2015-05-06 11:59:44.922434 |
updated_at | 2024-07-25 07:48:37.611849 |
description | A zero-copy json-lexer, filters and serializer. |
homepage | |
repository | https://github.com/Byron/json-tools |
max_upload_size | |
id | 2041 |
size | 72,189 |
This library contains a collection of tools to help interacting with json encoded data.
Tokens
into a stream of bytes, supprting the Read
trait.Add this to your Cargo.toml
[dependencies]
json-tools = "*"
Add this to your lib ...
use json_tools::BufferType;
use json_tools::Lexer;
for token in Lexer::new(r#"{ "face": "😂" }"#.bytes(), BufferType::Span) {
println!("{:?}", token);
}
This library may possibly never grow bigger than the two features originally mentioned, as it was created
as a workaround to missing features in serde
.
Run tests with cargo test
and benchmarks with cargo bench
(works on stable).
Licensed under either of
at your option.
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.