Skip to content

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

@cowtowncoder

Description

@cowtowncoder

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions