Registry / serialization / serde-json5

serde-json5

JSON →
library0.2.1rscratesunverified

A Serde (de)serializer for the JSON5 data format, which extends JSON with comments and other features.

# Cargo.toml [dependencies] serde_json5 = "0.2.1"
INSTALL
IMPORT
SIG · SERDE-JSON5
S
serde-json5
serializationrustv0.2.1
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.

from_str
use serde_json5::from_str;

Deserialize a JSON5 string into a serde_json::Value

use serde_json5::from_str; fn main() -> Result<(), Box<dyn std::error::Error>> { let data: serde_json::Value = from_str("{hello: 'world'}")?; println!("{:?}", data); Ok(()) }
Debug
Known issues
gotchaJSON5 is not JSON; some valid JSON5 may not be valid JSON and vice versa.
fix
Ensure your data conforms to JSON5 syntax (e.g., unquoted keys, comments).
affects: >=0.1.0
Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
serde-json5 — cargo add serde-json5 · libregistry