meResource->find(param('id'));
http_choose_media_type (
'application/json' => sub { to_json $data },
'application/xml ' => sub { to_xml $data },
{ default
d2 http_choose_charset
This keyword should only be used with non-binary media-types, like XML or JSON.
It is used to select in what 'encoding' the representation should be delivered.
NOTE: not sure