JSON streaming parser
JSON event parser is a simple streaming JSON parser and serializer implementation in Rust.
It does not aims to be the fastest JSON parser possible but to be a simple implementation.
If you want fast and battle-tested code you might prefer to use json, serde_json or simd-json.
Reader example:
use ;
let json = b"{\"foo\": 1}";
let mut reader = new;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
# Ok
Writer example:
use ;
let mut writer = new;
writer.write_event?;
writer.write_event?;
writer.write_event?;
writer.write_event?;
assert_eq!;
# Ok
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or
<http://www.apache.org/licenses/LICENSE-2.0>
) - MIT license (LICENSE-MIT or
<http://opensource.org/licenses/MIT>
)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in json-event-parser by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.