[][src]Function yukikaze::extractor::json

pub async fn json<S, I, E, J>(
    body: S,
    encoding: ContentEncoding,
    limit: Option<usize>
) -> Result<J, BodyReadError> where
    S: HttpBody<Data = I, Error = E> + Unpin,
    I: Into<Bytes> + Buf,
    E: Into<BodyReadError>,
    J: DeserializeOwned

Extracts body as JSON from Stream

Params: