Api.parse_response throws JanrainApiException if response is not JSON