Serialize array of object