Registry / serialization / serde-json-core

serde-json-core

JSON →
library0.6.0rscratesunverified

A no_std compatible subset of serde_json for serializing and deserializing JSON in embedded environments.

# Cargo.toml [dependencies] serde-json-core = "0.6.0"
INSTALL
IMPORT
SIG · SERDE-JSON-CORE
S
serde-json-core
serializationrustv0.6.0
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_slice
use serde_json_core::from_slice;

Deserialize a JSON byte slice into a Value using serde-json-core.

use serde_json_core::from_slice; fn main() { let data = b"{\"key\": 42}"; let (value, _): (serde_json_core::Value, usize) = from_slice(data).unwrap(); println!("{:?}", value); }
Debug
Known issues
gotchaRequires the `alloc` feature for heap-allocated types like Value; without it only stack-allocated types work.
fix
Add `features = ["alloc"]` to your Cargo.toml dependency if you need Value or other heap types.
affects: >=0.5.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
serde-json-core — cargo add serde-json-core · libregistry