Function to convert json string or python dict into ObjectWrapper

@PGriffith
I’m trying to do this as well. I have a custom param that’s an Object with this format:
image

When I use dict() to convert to a dict, the base controlAccess works fine, but its key values are still ObjectWrappers. I assume i’m going to have to loop through it and convert all ObjectWrappers into dicts?

I’ve just tried this and I can’t import the object:
import com.inductiveautomation.perspective.gateway.script.PropertyTreeScriptWrapper

With the error:
ImportError: No module named perspective

v8.1.5

This works, but yuck!
str(type(dict(self.view.custom.controlAccess)['racking'])) == "<type 'com.inductiveautomation.perspective.gateway.script.PropertyTreeScriptWrapper$ObjectWrapper'>"