module Roda::RodaPlugins::Json::RequestMethods
def block_result_body(result)
convert the result to json and return it as the body, using the
If the result is an instance of one of the json_result_classes,
def block_result_body(result) case result when *roda_class.json_result_classes response[CONTENT_TYPE] ||= roda_class.opts[:json_result_content_type] convert_to_json(result) else super end end