I have a many-to-many relationship and I want to bring the records to a view, I am using the $ .ajax () method of jquery but after executing the code in the browser it says that there is a circular reference. What would be wrong?