When trying to convert a JPA object that has a bi-directional association into JSON, I keep getting
org.codehaus.jackson.map.JsonMappingException: Infinite
This worked perfectly fine for me. Add the annotation @JsonIgnore on the child class where you mention the reference to the parent class.
@ManyToOne @JoinColumn(name = "ID", nullable = false, updatable = false) @JsonIgnore private Member member;