to_json_generic#

lsst.daf.butler.json.to_json_generic(self: SupportsSimple, minimal: bool = False) str#

Convert this class to JSON form.

The class type is not recorded in the JSON so the JSON decoder must know which class is represented.

Parameters#

minimalbool, optional

Use minimal serialization. Requires Registry to convert back to a full type.

Returns#

jsonstr

The class in JSON string format.