Skip to main content

from_json_slice

Function from_json_slice 

Source
pub fn from_json_slice<T>(body: &[u8]) -> Result<T, Error>
Expand description

Deserializes a JSON response body from bytes.

ยงErrors

Returns an error if the body is not valid JSON for T.