obspy.io.json.default.Default.__init__

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

Create a “default” function for JSONEncoder for ObsPy objects

Parameters:
  • omit_nulls (bool) Leave out any null or empty values (True)
  • time_format (str) Format string passed to strftime (None)