The type '{0}' cannot be serialized to JSON because its IsReference setting is '{1}'. The JSON format does not support references ...

The type '{0}' cannot be serialized to JSON because its IsReference setting is '{1}'. The JSON format does not support references because there is no standardized format for representing references. To enable serialization, disable the IsReference setting on the type or an appropriate parent class of the type.