Moved jsonpatch code to separate file.