fork of https://bitbucket.org/devonit/qjsonrpc