without this change if in json paths we have .a[0].b[0] and .a[0].b[1] when the first entry is removed, then there is no longer any .a[0].b[1] since it becomes .a[0].b[0]. with this change we're first deleting enties without removing the trailing containers, then we're reversing the order of jsonpaths so that we delete starting from .a[0].b[1] and only then .a[0].b and finally we're removing the containers fixes gh-1125