JSON requests now also allow "text/html" responses from the server.