NAME

JSON::RPC::Common::Marshal::Catalyst - Convert Catalyst::Request to JSON::RPC::Common:Call.

Based on JSON::RPC::Common::Marshal::HTTP. Only one method has been overriden.

SYNOPSIS

use JSON::RPC::Common::Marshal::Catalyst;

sub simple_json_endpoint : Local {
	my ($self, $c, @args) = @_;
	my $m = JSON::RPC::Common::Marshal::Catalyst->new;
	my $call = $m->request_to_call($c->req);
	my $res = $call->call($self);
	$m->write_result_to_response($c->res);
}

DESCRIPTION

This object provides marshalling routines to convert Catalyst::Request to JSON::RPC::Common:Call object.

Use JSON::RPC::Common::Marshal::Catalyst to work with HTTP::Request

METHODS

post_request_to_call $http_request

Convert an Catalyst::Request to a JSON::RPC::Common::Procedure::Call. Overriden method only differ from parent that use $request->body instead of $request->content;