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 content written via JsonGenerator by specifying JsonPointer #185

Closed
cowtowncoder opened this issue Mar 13, 2015 · 2 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

(similar to #137, different direction)

For many dynamic use cases it would be nice to be able to only include a subset (subtree) of content that is being written, so that, for example, a JsonPointer defines portion of a POJO is included in the output actually generated. While it would be more efficient to try to select subset before generation ability to define subsets dynamically make it more convenient to separate out parts.

@cowtowncoder cowtowncoder changed the title Allow filtering content written using JsonPointer Allow filtering content written via JsonGenerator by specifying JsonPointer Mar 16, 2015
@cowtowncoder cowtowncoder added this to the 2.6.0 milestone Apr 24, 2015
@cowtowncoder
Copy link
Member Author

Implemented, by adding new package com.fasterxml.jackson.core.filter and classes:

  • TokenFilter for specifying filtering criteria; JsonPointerBasedFilter as a sample implementation
  • FilteringGeneratorDelegate for actual generator that uses specified filtering strategy (TokenFilter)

cowtowncoder added a commit that referenced this issue Apr 24, 2015
@tlrx
Copy link
Contributor

tlrx commented Apr 24, 2015

Awesome! :)

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

2 participants