Ensure POST/PUT requests are sent with JSON object in body