Created
March 22, 2022 22:37
-
-
Save adamdehaven/70b14b013ca77fba406afb54856a6735 to your computer and use it in GitHub Desktop.
JSON Patch before/after
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"viewer": { | |
"name": "Viewer", | |
"description": "Read only access to all users", | |
"entity_instances": [ | |
{ | |
"id": "UUID-A" | |
}, | |
{ | |
"id": "UUID-B" | |
}, | |
{ | |
"id": "UUID-C" | |
}, | |
{ | |
"id": "UUID-D" | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"viewer": { | |
"name": "Viewer", | |
"description": "Read only access to all users", | |
"entity_instances": [ | |
{ | |
"id": "UUID-B" | |
}, | |
{ | |
"id": "UUID-C" | |
}, | |
{ | |
"id": "UUID-D" | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"op": "remove", | |
"path": "/viewer/entity_instances/3" | |
}, | |
{ | |
"op": "replace", | |
"path": "/viewer/entity_instances/2/id", | |
"value": "UUID-D" | |
}, | |
{ | |
"op": "replace", | |
"path": "/viewer/entity_instances/1/id", | |
"value": "UUID-C" | |
}, | |
{ | |
"op": "replace", | |
"path": "/viewer/entity_instances/0/id", | |
"value": "UUID-B" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment