After briefly discussing with @wardi maybe https://github.com/stefankoegl/python-json-patch would be helpful here. It would obviously need adding to the requirements.txt too.