java - How to include/exclude field in json(Jackson - conversion from Object to Json) while converting on the basis of some property in spring framework? -


let class be

public class student{      (annotate such field included version 1 , excluded others while serializing json)      private int id;      private string name; } 

is there method in spring achieve this?


Comments