I have created a hibernate program with one-to-many bidirectional relation which is working fine. If I try to convert a java object to a JSON object I am getting a stack ove