you should also test if response is in JSON.