Working on JSON-RPC API