pub fn from_slice<T: DeserializeOwned>(data: &[u8]) -> Result<T, JsonError>Expand description
Deserialize a value from a byte slice.
With the “simd” feature enabled, uses sonic-rs for SIMD-accelerated parsing.
sonic-rs accepts &[u8] (immutable), making it compatible with ShmSlice’s
Bytes backing store without extra copies.
Without “simd”, delegates to serde_json::from_slice.