Move to using JSON for requests.