You missed the parser part and mistakenly focused on editability.
Diffx authors wrote a prototype in Python where JSON support is built-in. Go parse it in bash or C.
Having to parse JSON for the sake of applying a patch is not exactly wise