obspy.io.json.default.Default

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

Bases: future.types.newobject.newobject

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__ unicode(object=’‘) -> unicode object
__module__ str(object=’‘) -> string
__weakref__ list of weak references to the object (if defined)

Public Methods

next

Special Methods

__call__ Deal with Event objects in JSON Encoder
__format__ default object formatter
__init__ Create a “default” function for JSONEncoder for ObsPy objects
__long__
__native__ Hook for the future.utils.native() function
__new__
__nonzero__
__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().
__unicode__