check, if API response is really JSON