obspy.io.json.default.Default

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

Bases: builtins.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__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__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
__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().