changes the request format to json