I am trying to get a JSON Object from an object but it fails with below exception
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
Searched on internet and solutions provided are @JSONIgnore , @JSONBackReference but my project is so huge that I can't afford to change any existing entity.
Is there some other way we can get away with the cyclic dependency and get a proper json string from the object?