Add optional support for jsonReviver

Allows the use of a reviver function when parsing the response body as JSON