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

@JsonPath should support multiple paths [DATACMNS-1144] #1586

Closed
spring-projects-issues opened this issue Aug 24, 2017 · 0 comments
Closed
Assignees
Labels
in: web Integration with Spring MVC type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Aug 24, 2017

Oliver Drotbohm opened DATACMNS-1144 and commented

A nice way to react to changes in a JSON structure is to try to look up values at different places in the JSON. E.g. an API might return a firstName field in one version and a firstname one in another. If @JsonPath allowed to define multiple paths, we could inspect them one after another and return the value for the first one that's actually present


Affects: 1.13.6 (Ingalls SR6), 2.0 RC2 (Kay)

Referenced from: commits d018757

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Integration with Spring MVC type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants