json

fun json(name: String, declare: DebugParamSpec.() -> Unit = {}): DebugParam<String?>

Declares a field named name that takes any JSON value. The handler gets the value as JSON text, such as ["a","b"] or "text", and parses it itself. Set DebugParamSpec.schema to describe the value in the OpenAPI document.