JSON::RPC::Liteというモジュールを書きました 1 2 3 4 5 6 7 8 use JSON::RPC::Lite; method 'echo' => sub { my ($param) = @_; return $param; }; as_psgi_app; 1 $ plackup app.psgi 1 {"jsonrpc":"2.0","method":"echo","params":"Hello!","id":1} 1 {"id":1,"jsonrpc":"2.0","result":"Hello!"}