Prior json format
Compare changes
Maintenance will be performed on git.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 22 April 2025 starting at approximately 9am PDT. It is expected to take around 30 minutes and there will be several periods of downtime throughout the maintenance. Please address any comments, concerns, or questions to the helpdesk. This maintenance will be upgrading the GitLab database in order to be ready for the migration.
This MR allows prior dicts (and prior classes) to be read from/written to json.
It's not the prettiest code so style feedback is particularly welcome.
This will allow to store all prior types, relevant to #355 (closed), #192 (closed).
Also, if we make this the default and deprecate the current version, we can remove the eval
statement in the prior reading.