Serialize intellectual objects, generic files and events for API