value as JSON with Content-Type: application/json. The body is built in the temporary
allocator.
- value: any value the Json module can encode.
- status: the HTTP status code.
json :: (value: $T, status := 200) -> Response
value as JSON with Content-Type: application/json. The body is built in the temporary
allocator.
Parameters
- value: $T
- any value the Json module can encode.
- status := 200
- the HTTP status code.