Move json-rpc specific code to separete class