-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
To add support for other formats we will have to separate the conversion code from the JSON-specific things. I see two potentially viable ways of doing it: An intermediate format or the strategy pattern.
The intermediate format would be good because the converter code would have a common target and the format code could do whatever it want as long as it provides a valid intermediate format object. The problem would be coming up with the format and avoiding creating boilerplate code.
The strategy pattern would be replacing every call to the JSON object and instead call to an object that knows how to extract/insert data from/to the format. This will probably not be as flexible as the intermediate format, but would be easier to implement.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels