I have a web method called from Jquery to display a hierarchical tree object. The return value is a List (Of T) , where T is hierarchical, a parent-child relationship. traversal will be from parent to child.
1) .Net automatically converts the return value from webmethod to JSON to send it back to js client. At that point it throws a circular ref error. I checked code and only the parent calls the child and not the other way. But we use structureMap for dependency injection. Could this be causing the circular ref ?
Note: I have a test project without structureMap to display the hiearchical tree structure and I have no problems with the json serialization.
Any ideas on how to debug this will be helpful?