serialize
- negmas.serialization.serialize(value, deep=True, add_type_field=True, keep_private=False, ignore_methods=True, ignore_lambda=False, objmem=None)[source]
Encodes the given value as nothing more complex than simple dict of either dicts, lists or builtin numeric or string values. The resulting dictionary will be json serializable
- Parameters
value (giving the type of) – Any object
deep – Whether we should go deep in the encoding or do a shallow encoding
add_type_field – Whether to add a type field. If True, A field named
PYTHON_CLASS_IDENTIFIER
will be addedvalue –
keep_private – Keeps fields starting with “_”
Remarks:
See also
deserialize
,PYTHON_CLASS_IDENTIFIER