Function HTTPServerResponse.writeJsonBody
Writes a JSON message with the specified status
void writeJsonBody(T)
(
T data,
int status,
bool allow_chunked = false
);
void writeJsonBody(T)
(
T data,
int status,
string content_type,
bool allow_chunked = false
);
void writeJsonBody(T)
(
T data,
string content_type,
bool allow_chunked = false
);
void writeJsonBody(T)
(
T data,
bool allow_chunked = false
);