Fix JSON type error because API now returns array