Use builder approach for serializing array of objects