Create a JSON Serializer for OptHistory
Created by: MorrisNein
A custom Serializer is needed that implies knowledge of OptHistory's inner structure. It must not contain or dump paths to classes used in OptHistory, thus it is to be immune to project structure changes. It must transform older histories to an actual form.
Potentially, it can resolve two major problems:
- Backward compatibility with older histories. by transforming every loaded history to an actual form.
- Compact storage of OptHistory. At least, it allows getting rid of mentioning paths to classes that take major space in default JSON dumps. At most, we can implement compact graphs storage (optional).