Skip to main content

ComplexSerializer

No overview available.

Methods


serialize()

def serialize(
data: object,
format: string = json
) - > string

Converts complex data structures into a serialized format suitable for storage or transmission.

Parameters

NameTypeDescription
dataobjectThe complex object or data structure to be serialized.
formatstring = jsonThe target serialization format, such as 'json' or 'xml'.

Returns

TypeDescription
stringA string representation of the serialized object in the target format.