Answers for "jackson avoid return property"

0

jackson avoid return property

//....getter, setter of Person class
@JsonIgnore
public List<Event> getEvents() {
    return events;
}

@JsonProperty("events")
public Event[] getEventsArr() {
    return events.toArray(new Event[0]);
}
Posted by: Guest on October-06-2021

Browse Popular Code Answers by Language