binary-extract

Crates.iobinary-extract
lib.rsbinary-extract
version0.3.0
sourcesrc
created_at2023-02-24 16:15:51.576923
updated_at2023-03-03 18:08:32.234434
descriptionExtract a value from a json string without parsing the whole thing
homepage
repository
max_upload_size
id793743
size10,036
Julian Gruber (juliangruber)

documentation

README

binary-extract

Extract a value from a json string without parsing the whole thing.

📖 Docs

📦 Crate

Installation

$ cargo add binary-extract

Example

let value = binary_extract::extract(r#"{"foo": "bar"}"#, "foo").unwrap();
assert_eq!(value, "bar");

Perf

With the object from benches/json.rs, extract() is ~3.5x faster than json::parse.

See also

License

MIT

Commit count: 0

cargo fmt