java - How do I get @JsonIgnore to work so that JSON are not returned recursively? -
i have following java class. @component @jsonignoreproperties({"begin", "end"}) public class event extends resourcesupport { @jsonproperty("name") private final string name; @jsonproperty("description") private final string description; @jsonproperty("timezone") private final zoneid timezone; private final localdatetime begin; private final localdatetime end; this gets returned in rest service. regardless of returns deep object representation of localdatetime , below. ... {"hour":1,"minute":0,"second":0,"nano":0},"midnightendofday":false},{"month":"october","timedefinition":"utc","standardoffset":{"totalseconds":3600,"id":"+01:00","rules":{"fixedoffset":true,"transitions":[],"transitionrules":[]}},"offsetbefore"...