The json error via Firebug -
A circular reference was detected while serializing an object of type [MY PERSISTANT TYPE]
I have two objects creating the offense have a One-to-Many relationship which I'm guessing is leading to the above error, but I'm unsure of how to get around it it short of killing the relationship which I need for other areas in the app.
Example: Customers has a one-to-many relationship with Orders.
So if I'm in Orders, I can say Order.Customer.CustomerName
and likewise in Customer I could do Customer.Order.OrderDate
The problem comes in when I'm referencing the customer object via JSON webservice. JSON does not like that the Customer object can now do a circular refrence: Customer.Order.Customer.Order
How do I prevent this to a certain depth or prevent the circular refrence under this situation?