Check that API response is JSON

check_response_json(response)

Arguments

response

A response object.

Value

NULL. Raises an error if the response is not JSON.