Author: mpcm

Perl 6 meets JSON-RPC

“During Polish Perl Workshop 2014 Carl Mäsak showed us how to model Feline Hotel application. But he forgot one thing – that cats own the Internet and they want to browse and reserve rooms online! I will pick up where he left off and show you how to publish API and go live in a blink of an eye.” – http://blogs.perl.org/users/pawel_bbkr_pabian/2014/05/perl-6-meets-json-rpc.html

haskell package: jsonrpc-conduit

conduit

“jsonrpc-conduit implements the basic building block of a JSON-RPC 2.0 server.
It provides a Conduit that consumes RPC requests and invokes user-provided functions to handle them. Conversion of values to and from JSON is almost completely automatic thanks to the aeson library.

The JSON-RPC conduit is generic with respect to the channel used to exchange data with the client. It can use a network connection or, for example, the standard input / ouput of a process. The latter is demonstrated by the jsonrpc-conduit-demo executable, which can be compiled using the demo flag.” – http://hackage.haskell.org/package/jsonrpc-conduit-0.2.5