vantage6.common.serialization.serialize#

serialize(data)#

Serialize data using the specified format

Parameters:

data (any) – The data to be serialized

Returns:

A JSON-serialized and then encoded bytes object representing the data

Return type:

bytes