```crystal params do json require: true do type content : String end end ``` Would return `400 JSON payload required` if content type is not `"application/json"` **or** the body is missing. It is useful for applications which work with JSON requests only.