dynamic json(value)

Serializes JSON to the response.

Source

json(value) {
  write(god.serialize(value));
  header(HttpHeaders.CONTENT_TYPE, ContentType.JSON.toString());
  end();
}