array notation to obj notation