Added exception for invalid json response