Http module

json

procedure · 1 overloadSource

value as JSON with Content-Type: application/json. The body is built in the temporary allocator.

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.

Returns

See also