Registry / serialization / serde-json-bytes

serde-json-bytes

JSON →
library0.2.5rscratesunverified

A JSON Value object with strings backed by Bytes, parsed by serde_json.

# Cargo.toml [dependencies] serde_json_bytes = "0.2.5"
INSTALL
IMPORT
SIG · SERDE-JSON-BYTES
S
serde-json-bytes
serializationrustv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Value
✓ use serde_json_bytes::Value;

Parses a JSON string into a Value with bytes-backed strings.

use serde_json_bytes::Value; fn main() { let json = r#"{"key": "value"}"#; let value: Value = serde_json::from_str(json).unwrap(); println!("Parsed: {:?}", value); }
Debug
Known issues
gotchaThis crate uses `Bytes` for string storage, which may have different memory semantics than standard `String`.
fix
Ensure you understand the ownership model of `Bytes` when working with the parsed values.
affects: >=0.2.0
Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
serde-json-bytes — cargo add serde-json-bytes · libregistry