Serialize view