Small changes in JSON RPC code.