GeneralFileEncoder

class mss_dataserver.core.json_util.GeneralFileEncoder(**kwarg)[source]

Bases: json.encoder.JSONEncoder

A JSON encoder for the serialization of general data.

Parameters

**kwargs (keyword argument) – Keyword arguments passed to json.encoder.JSONEncoder.

Variables

Properties

item_separator

key_separator

version

Methods

__init__(**kwarg)

Initialization of the instance.

convert_filecontainer(obj)

Convert a filecontainer instance.

convert_np_ndarray(obj)

Convert a numpy array instance.

convert_utcdatetime(obj)

Convert a UTCDateTime instance.

convert_version(obj)

Convert a UTCDateTime instance.

default(obj)

Convert objects to a dictionary.

encode(o)

Return a JSON string representation of a Python data structure.

iterencode(o[, _one_shot])

Encode the given object and yield each string representation as available.

Inheritence diagram

Inheritance diagram of mss_dataserver.core.json_util.GeneralFileEncoder