JsonPointer.parent() Convenience Method

Francis:

A handy convenience method for JsonPointer if you agree that it is. Otherwise, I was forced to do something like this externally:

    public static JsonPointer parentJsonPointer(JsonPointer pointer) {
        List<TokenResolver<JsonNode>> parentResolvers = new ArrayList<TokenResolver<JsonNode>>();
        Iterator<TokenResolver<JsonNode>> tokenResolverIter = pointer.iterator();
        if (tokenResolverIter.hasNext()) {
            for (;;) {
                TokenResolver<JsonNode> next = tokenResolverIter.next();
                if (tokenResolverIter.hasNext()) {
                    parentResolvers.add(next);
                    continue;
                }
                break;
            }
        }
        return new JsonPointer(parentResolvers);
    }

Seems like something that others may need as well. Thanks!