obspy.core.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(string [, encoding[, errors]]) -> 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
__init__ Create a “default” function for JSONEncoder for ObsPy objects
__long__
__native__ Hook for the future.utils.native() function
__nonzero__
__unicode__