Registry / serialization / gjson
library0.8.1rscratesunverified

Get JSON values quickly using a simple path syntax, optimized for performance.

# Cargo.toml [dependencies] gjson = "0.8.1"
INSTALL
IMPORT
SIG · GJSON
G
gjson
serializationrustv0.8.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.

get
use gjson::get;

Extracts a nested JSON value using a dot-separated path.

use gjson::get; let data = r#"{"name": {"first": "Tom", "last": "Anderson"}}"#; let value = get(data, "name.first"); println!("First name: {}", value);
Debug
Known issues
gotchaDoes not validate JSON; returns empty string for invalid paths.
fix
Use `gjson::valid` to check JSON validity before querying.
affects: >=0.0.0
Upgrade
Version history
0.8.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gjson — cargo add gjson · libregistry