0.1
No release in over 3 years
Low commit activity in last 3 years
JSON-RPC 2.0 client and server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 4.2, >= 4.2.2
~> 2.14, >= 2.14.1

Runtime

>= 3.1.3
>= 1.11.2
>= 1.4.5
>= 1.7.3
 Project Readme

Jimson

JSON-RPC 2.0 Client and Server for Ruby

Build Status

Client: Quick Start

require 'jimson'
client = Jimson::Client.new("http://www.example.com:8999") # 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 'jimson'

class MyHandler
  extend Jimson::Handler

  def sum(a,b)
    a + b
  end
end

server = Jimson::Server.new(MyHandler.new)
server.start # serve with webrick on http://0.0.0.0:8999/

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'

Previous maintainer

This gem was maintained by Chris Kite till April 2021.