NRV_Encoder

class nrv.backend.NRV_Encoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]

Json encoding class, specific for NRV2 axon prevent from type error due to np.arrays solution taken as this from askpython.com

Attributes

Methods

NRV_Encoder.__init__(*[, skipkeys, ...])

Constructor for JSONEncoder, with sensible defaults.

NRV_Encoder.default(obj)

Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).

NRV_Encoder.encode(o)

Return a JSON string representation of a Python data structure.

NRV_Encoder.iterencode(o[, _one_shot])

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