Merge parsedBody (JValue) into params if possible.
Merge parsedBody (JValue) into params if possible.
Returns JSON response.
Returns JSON response.
entity
charset
prettify if true
body
(Since version 2.1.0) Do not invoke directly. Use withRequest
to change the binding, or request to get the value
(Since version 2.1.0) Do not invoke directly. Use withResponse
to change the binding, or response
to get the value
(Since version 2.1.0) Use servletContext instead
(Since version 2.3) format
now means the same as responseFormat
, responseFormat
will be removed eventually
(Since version 2.1.0) Use status_=(Int) instead
Merging JSON request body into Scalatra params.
When you'd like to avoid merging JSON request body into params in some actions, please separate controllers.