Skip to main content

from_json_slice

Function from_json_slice 

Source
pub fn from_json_slice<T: DeserializeOwned + StrictSchema>(
    bytes: &[u8],
) -> Result<T, String>
Expand description

Parse JSON bytes, rejecting any key the target type doesn’t know.