A general JSON RPC implementation.