79510857

Date: 2025-03-15 09:05:28
Score: 1.5
Natty:
Report link

A solution that I am using over couple of projects, in java, is to wrap the json object that intercept the changes and store them in another dictionary or map which later can be retrieved and processed.

Then, the rest of the code is unaware of this and doesn't need any maintainance. See Decorator or Wrapper design patterns.

This is very dependent on which programming language your are using and how easy it is to change the way that the JSON object is been manipulated.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: cgian