watson.serialize.serializers¶
-
class
watson.serialize.serializers.Instance(router)[source]¶ Serialize an iterable object into a format suitable for json encoding.
-
include_name¶ boolean – Whether or not to include null values in the output
-
strategies¶
-
type¶ mixed – The class name of the object being serialized
Returns: A list of objects that are suitable to be json encoded Usage:
-
identifier¶ Unique identifier for the object being serialized.
Defaults to the first
Returns: The first value from the attributes Meta class. Return type: string
-