obspy.io.json - JSON write support for ObsPy

JavaScript Object Notation is a text-based open standard designed for human-readable data interchange. The JSON format is often used for serializing and transmitting structured data over a network connection. It is used primarily to transmit data between a server and web application, serving as an alternative to XML.

See the module obspy.io.json.default for documentation on the class. A write function for files and a utility for compact string serialization using the Default class are located in obspy.io.json.core.

Classes & Functions

get_dump_kwargs

Return dict of kwargs for json.dump() or json.dumps().

_write_json

Write object to a file in JSON format

Default

Class to create a "default" function for the json.dump()/json.dumps() functions which is passed to the JSONEncoder.

Modules

core

default

JSON Encoder default function