obspy.io.json.default
JSON Encoder default function
This module provides:
Default : a class to create a “default” function accepted by the
python json
module Encoder classes, valid for
Event
objects.
Example
>>> import json
>>> from obspy import read_events
>>> from obspy.io.json.default import Default
>>> c = read_events()
>>> d = Default(omit_nulls=False)
>>> s = json.dumps(c, default=d)
Classes
Class to create a "default" function for the |