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

Add support for 'read at' via new annotation, JSON Pointer expression #70

Open
cowtowncoder opened this issue Jun 18, 2015 · 0 comments

Comments

@cowtowncoder
Copy link
Member

Once databind adds support for reading a sub-tree:

FasterXML/jackson-databind#820

it would make sense to expose this from JAX-RS endpoint as well. A new annotation, something like:

@Path("/api")
public int submitAccount(@JsonAt("/request/payload/accounts/0") Account account) {
    ...
}

might make sense. It would basically allow binding only a subset of incoming document into parameter, skipping other payload efficiently (although caller will still send it).

@cowtowncoder cowtowncoder changed the title Add support for 'read at' via new annotation, JSON Pointer expression (2.7) Add support for 'read at' via new annotation, JSON Pointer expression Aug 10, 2015
@cowtowncoder cowtowncoder changed the title (2.7) Add support for 'read at' via new annotation, JSON Pointer expression (2.8) Add support for 'read at' via new annotation, JSON Pointer expression Jun 2, 2016
@cowtowncoder cowtowncoder changed the title (2.8) Add support for 'read at' via new annotation, JSON Pointer expression (2.9) Add support for 'read at' via new annotation, JSON Pointer expression Oct 25, 2016
@cowtowncoder cowtowncoder changed the title (2.9) Add support for 'read at' via new annotation, JSON Pointer expression Add support for 'read at' via new annotation, JSON Pointer expression Jul 28, 2017
@cowtowncoder cowtowncoder removed the 2.9 label Feb 23, 2021
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