Utility function to parse a raw HTTP response as JSON if supported, otherwise as text.
Raw HTTP response to parse.
Parsed JSON for JSON responses, otherwise response text.
Utility function to parse a raw HTTP response as JSON if supported, otherwise as text.