Add support for custom fetchJSONContent to respond to redirects