java - how to serialize a pojo with jackson in 2 different ways? -


i have different rest endpoints returns different parts of same object. how can serialize same object in 2 different ways? need different dto or there simpler way?

you can create different views different rest endpoints.

see documentation here: http://wiki.fasterxml.com/jacksonjsonviews


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -