Is there a way to identify if a variable is simply a reference to another object, and if so, determine the original variable name?
For example, when trying to json encode an object that contains a property referencing back to the original object, it can lead to an infinite loop. Is there a method to test if a property is a reference and indicate it as such without having to reconfigure the original object?