Added json-rpc API