JSON I/O#

lsst.images.json Package#

Archive implementations for simple JSON files.

The archives in this package write to and read from JSON by embedding all array and table data into the JSON tree as inline arrays. While this technically allows them to support arbitrary archive-serializable object, it can be extremely inefficient for large arrays and tables.

The outermost object in the stored form is just the serialization.ArchiveTree that corresponds to the top-level in-memory object being saved.

Functions#

read(cls, target)

Read an object from a FITS file.

write(obj[, path, metadata, butler_info])

Write an object with a serialize method to a JSON file.

Classes#

JsonInputArchive([indirect])

An implementation of the serialization.InputArchive interface that reads from JSON files.

JsonOutputArchive()

An implementation of the serialization.OutputArchive interface that writes to JSON files.