parseResponseAsJson

private open fun <T> parseResponseAsJson(response: String): T

Method to parse the response of the request and format it as "JSON"

Return

the response formatted as "JSON" or a simple String if is not possible format as "JSON"

Parameters

response

: response to parse