Skip to content


Subversion checkout URL

You can clone with
Download ZIP
JSON-RPC 2.0 client and server for Ruby
Pull request Compare This branch is 19 commits ahead of chriskite:next.
Latest commit 4a64bb4 @calas calas Update README file


JSON-RPC 2.0 Client and Server for Ruby

Build Status

Why the fork

This is a customized version of the jimson gem by Speedyrails, super awesome rails managed hosting solution.

Among the modifications done or planed are:

  • Remove blankslate warning in ruby 1.9.3+. DONE.
  • Don't automtically require files, but load only what is needed. DONE.
  • Change HTTP library to faraday to allow middlewares. PLANED.
  • Allow block configuration (log, middlewares, etc). PLANED.

Client: Quick Start

require 'sr/jimson'
client ="") # the URL for the JSON-RPC 2.0 server to connect to
result = client.sum(1,2) # call the 'sum' method on the RPC server and save the result '3'

Server: Quick Start

require 'sr/jimson'

class MyHandler
  extend Sr::Jimson::Handler

  def sum(a,b)
    a + b

server =
server.start # serve with webrick on

JSON Engine

Jimson uses multi_json, so you can load the JSON library of your choice in your application and Jimson will use it automatically.

For example, require the 'json' gem in your application: require 'json'

Something went wrong with that request. Please try again.