dle requests that have either a JSON body or no body
my ($ct) = (split /;\s*/, request->content_type, 2);
if (request->body && ($ct ne 'application/json')) {
pass();
return "";
}
content_type 'application/json';
my $method_args = request->body
? from_json(request->body)
: { };
my $route_args = reque
", $response);
}
my $jsonise_options = {canonical => 1};
if (config->{encoding} && config->{encoding} =~ m{^utf-?8$}i) {
$jsonise_options->{utf8} = 1;
}