Send rpc calls as json rather than query string