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

Special Methods

__call__ Deal with Event objects in JSON Encoder
__init__ Create a “default” function for JSONEncoder for ObsPy objects

This Page