When I try to reference a perspective object property in my script the Ignition converts them to class com.inductiveautomation.perspective.gateway.script.DotReferenceJythonMap which is good for most cases.
But I want to convert them to class org.python.core.PyDictionary so I can use the python .copy() function or similar things on it.
So the first question is how to make a deep copy of DotReferenceJythonMap?
And how to convert class com.inductiveautomation.perspective.gateway.script.DotReferenceJythonMap to python dictionary?
I really wish ignition would do this for you automatically.
I have resorted to using this function on any list / dictionary type object before use because without it I inevitably run into issues trying to treat them like a list / dictionary.