domplating nested object and array