Answers for "jackson ignore property on return"

0

jackson ignore property on return

//....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

Code answers related to "jackson ignore property on return"

Browse Popular Code Answers by Language