ntent types provided by the base class are:
[] ?format=xml or Accept: application/xml
[] ?format=json or Accept: text/javascript
[] ?format=html or Accept: text/html
HTML will be returned if the req
use XML::Dumper; import XML::Dumper; "; ## Conditional Output format: XML
eval "use JSON; import JSON; "; ## Conditional Output format: JavaScript Object Notation
our( $VERSION ) = '0.5
if (-f $INC{"JSON.pm"})
{
$this->{mimetype_mapping}->{json} = "text/javascript"; ## Support: ?format=json
$this->format( "text/javascript",
\&REST::Resource::format_json,
"Re