We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5607a0 commit ce6de56Copy full SHA for ce6de56
.github/workflows/jsondiff.py
@@ -32,7 +32,8 @@ def diff_files():
32
doc2 = json.load(args.FILE2)
33
patch = jsonpatch.make_patch(doc1, doc2)
34
if patch.patch:
35
- print(json.dumps(patch.patch.sort(key=lambda op: op["path"]), indent=args.indent))
+ patch.patch.sort(key=lambda op: op["path"])
36
+ print(json.dumps(patch.patch, indent=args.indent))
37
sys.exit(1)
38
39
if __name__ == "__main__":
0 commit comments