obspy.io.json.default.Default

class Default(omit_nulls=True, time_format=None)[source]

Bases: object

Class to create a “default” function for the json.dump()/json.dumps() functions which is passed to the JSONEncoder.

Attributes

OMIT_NULLS

TIME_FORMAT

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

Special Methods

__call__

Deal with Event objects in JSON Encoder

__dir__

Default dir() implementation.

__format__

Default object formatter.

__init__

Create a “default” function for JSONEncoder for ObsPy objects

__init_subclass__

This method is called when a class is subclassed.

__new__

Create and return a new object.

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__sizeof__

Size of object in memory, in bytes.

__subclasshook__

Abstract classes can override this to customize issubclass().