Case 1 : array to object