cast JSON response to array for consistency