JSONFileSerializer#

class JSONFileSerializer(file)[source]#

Bases: Serializer

Write data into and read data from JSON files in a human-readable format.

__init__(file)[source]#

Methods

__init__(file)

load()

Load and return the data from JSON file.

load_comment()

Load and return the comment from the JSON file.

save(data[, comment])

Save the data and the optional comment to the JSON file that was specified in the constructor.

load()[source]#

Load and return the data from JSON file.

load_comment()[source]#

Load and return the comment from the JSON file.

save(data, comment=None)[source]#

Save the data and the optional comment to the JSON file that was specified in the constructor.