agent.serializer module

JSON serialization for submission core.

class agent.serializer.ProcessJSONDecoder(*args, **kwargs)

Bases: arxiv.submission.serializer.EventJSONDecoder

Decode Trigger and other domain objects from JSON data.

object_hook(obj, **extra)

Decode domain objects in this package.

Return type

Any

class agent.serializer.ProcessJSONEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)

Bases: arxiv.submission.serializer.EventJSONEncoder

Encodes domain objects in this package for serialization.

default(obj)

Serialize objects in this application domain.

agent.serializer.dumps(obj)

Generate JSON from a Python object.

Return type

str

agent.serializer.loads(data)

Load a Python object from JSON.

Return type

Any