jsonpatch
jsonpatch copied to clipboard
reverse array when remove multi groups from array
See this issue I opened in https://github.com/evanphx/json-patch/issues/106 and the PR https://github.com/evanphx/json-patch/pull/107
I used this library(CreatePatch) to crate a jsonPath for K8s webhook. When the K8s internal logics apply the patch, we meet invalid index.
This PR reverses the order when when should remove multi items.