serialize
can.Map.attributes.static.serialize
can.Map.serialize
is an object of name-function pairs that are used to
serialize attributes.
can.Map.serialize
is an object of name-function pairs that are used to
serialize attributes.
Similar to can.Map.attributes.convert, in that the keys of this object correspond to the types specified in attributes.
By default every attribute will be passed through the 'default' serialization method that will return the value if the property holds a primitive value (string, number, ...), or it will call the "serialize" method if the property holds an object with the "serialize" method set.
For example, to serialize all dates to ISO format: