In addition to fixing the format, this pull request also bumps the version to 3 (JSON).
Furthermore, support for reading the legacy version 2 plaintext FileStorage format is added for backwards compatibility. This is achieved through the addition of a helper function read_version_2_fs, along with a unit test.
Description
This pull request addresses the issue where the write to disk format for
FileStorage
was not valid JSON:38
Changes
Previously, the format looked like this:
After this pull request, the format will be updated to the following valid JSON format:
In addition to fixing the format, this pull request also bumps the version to 3 (JSON).
Furthermore, support for reading the legacy version 2 plaintext
FileStorage
format is added for backwards compatibility. This is achieved through the addition of a helper functionread_version_2_fs
, along with a unit test.