Replies: 1 comment 2 replies
-
Another mechanism would be use of http://www.cowtowncoder.com/blog/archives/2011/09/entry_461.html |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am looking for a way to implement a "fields" query parameter to apply a dynamic projection or view on the serialized json response payload in a REST API. E.g., GET http://api.example.org/users/123?fields=(name,friends(name)) would return only the name of the user and the name property within the nested list of friends. While this could be implemented at design time with a @JSONVIEW interface, the fields query parameter needs to be evaluated at runtime. I have found the project "Programmatic JSON Views" (https://github.com/monitorjbl/json-view) that implements something in that direction but it seems to be no longer maintained. Is there any built in feature in Jackson (or Spring Boot REST). Or do you know any framework that is still maintained?
Thanks, Julian
Beta Was this translation helpful? Give feedback.
All reactions