Be careful with JSON reply

Sometimes the API returns HTML instead