json

fun json(status: Int = 200, build: StringBuilder.() -> Unit): DebugResponse

A application/json; charset=utf-8 response whose body is built by applying build to a StringBuilder, with the given status (default 200).