Checks if the response is a valid JSON. Returns 0 if the response is not valid JSON, 1 if it is.
Private
Checks if the response is a valid JSON. Returns 0 if the response is not valid JSON, 1 if it is.