Jimson
JSON-RPC 2.0 Client and Server for Ruby
Client: Quick Start
require 'jimson'
client = Jimson::Client.new("http://www.example.com:8999")
result = client.sum(1,2)
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
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.