Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filtering of content read via JsonParser by specifying JsonPointer to match #137

Closed
cowtowncoder opened this issue Mar 24, 2014 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: whether filter should live here, or at jackson-databind is open to discussion)

Now that core module contains basic JsonPointer implementation (currently used by locating nodes in tree model), it would also make sense to allow basic filtering to be done using it. A natural (and very efficient) place to do that would be at streaming reader level.
So if possible, it would be good to add a delegate-style reader that takes a JsonPointer, and exposes matching subtree.

For bonus points one might be able to support set of filters, but that may or may not be practical; so start with a single pointer expression.

@cowtowncoder
Copy link
Member Author

Implemented for 2.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant