Rename to serializeObject.