I have a java class
public class CategoryItem implements Serializable {
private Long id;
private String name;
private Manager manager;
}
In one case,I need to convert all the fields to json. on the other case,I only need 'id'and 'name' How can I do?
Give me some tips.Thanks