HttpRequest.readBodyAsJson

Convenience method for reading the entire request body as a JSON node. An exception will be thrown if the body cannot be parsed as JSON.

struct HttpRequest
readBodyAsJson
(
bool allowInfiniteRead = false
)

Parameters

allowInfiniteRead bool

Whether to read until no more data is available.

Return Value

Type: auto

The request body as a JSON node.