process array and object