Registers a function to serialize objects of a given type.
type |
the type of objects that the function can serialize |
mime_type |
the mime type to serialize to |
serialize |
the callback |
data |
data that |
notify |
destroy notify for |