arxiv.submission.serializer module
JSON serialization for submission core.
-
class
arxiv.submission.serializer.
EventJSONDecoder
(*args, **kwargs)[source]
Bases: arxiv.submission.serializer.ISO8601JSONDecoder
Decode Event
and other domain objects from JSON data.
-
object_hook
(obj, **extra)[source]
Decode domain objects in this package.
- Return type
Any
-
class
arxiv.submission.serializer.
EventJSONEncoder
(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]
Bases: arxiv.util.serialize.ISO8601JSONEncoder
Encodes domain objects in this package for serialization.
-
default
(obj)[source]
Look for domain objects, and use their dict-coercion methods.
-
class
arxiv.submission.serializer.
ISO8601JSONDecoder
(*args, **kwargs)[source]
Bases: json.decoder.JSONDecoder
Attempts to parse ISO8601 strings as datetime objects.
-
object_hook
(data, **extra)[source]
Intercept and coerce ISO8601 strings to datetimes.
- Return type
Any
-
arxiv.submission.serializer.
dumps
(obj)[source]
Generate JSON from a Python object.
- Return type
str
-
arxiv.submission.serializer.
loads
(data)[source]
Load a Python object from JSON.
- Return type
Any