Json API

API for working with the Json type.

Import this module like this:

from sympathy.api import json

Class json.File

class sympathy.typeutils.json.File(fileobj=None, data=None, filename=None, mode='r', scheme='hdf5', source=None, managed=False, import_links=False)[source]

A Json structure.

Any node port with the Json type will produce an object of this type.

classmethod icon()[source]

Return full path to svg icon.

source(other, shallow=False)[source]

Update self with the data from other, without keeping the old state. When shallow is False (default), self should be updated with a deepcopy of other.

self and other must be of the exact same type.

classmethod viewer()[source]

Return viewer class, which must be a subclass of sympathy.api.typeutil.ViewerBase