readJsonBodyAs

Reads a JSON value from the body of the given HTTP request, parsing it using the ASDF library according to the template type T.

Throws a BAD_REQUEST HttpStatusException if deserialization fails.

T
readJsonBodyAs
(
T
)
(
ref ServerHttpRequest request
)

Parameters

request ServerHttpRequest

The request to read the JSON from.

Return Value

Type: T

The value that was read.