Skip to main content

parse_json

Function parse_json 

Source
pub(super) fn parse_json(
    request: &Request,
    route: TypeId,
    scheme: Scheme,
) -> Result<Option<CanonicalJsonValue>>
Expand description

Parses canonical JSON while retaining ordinary JSON for typed deserialization.

A raw-body route’s bytes are never parsed and pass through unchanged. Empty POST and DELETE bodies on other routes become objects for UIA. A server-signed body must be canonical JSON because its signature covers only the canonical form; only a zero-byte body is authenticated without content.