# Property Change Script on Custom Object

**URL:** <https://forum.inductiveautomation.com/t/property-change-script-on-custom-object/30782>\
**Category:** Ignition\
**Created:** [December 17, 2019, 10:32pm UTC](https://forum.inductiveautomation.com/t/property-change-script-on-custom-object/30782 "2019-12-17T22:32:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [December 17, 2019, 10:32pm UTC](https://forum.inductiveautomation.com/t/property-change-script-on-custom-object/30782/1 "2019-12-17T22:32:21Z")

</div>

In Perspective I have a custom object property that I would like to turn back into a python instance. The problem I am seeing is that all the properties with my object that are also other python classes are qualified values. It seems that the property change script only sees the property object as a qualified value with all its members turned into qualified values. Is there a way to turn all the qualified values back into just values so that I can turn the object property back into a python instance?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 17, 2019, 10:49pm UTC](https://forum.inductiveautomation.com/t/property-change-script-on-custom-object/30782/2 "2019-12-17T22:49:21Z")

</div>

Try this method, I think I understand what you're trying to do:

> [@\[BUG\] tolist() broken in 8.0.5](http://forum.inductiveautomation.com/t/bug-tolist-broken-in-8-0-5/29454/6):
>
> Try this, in the meantime - I need to come up with a better way to handle conversion to json (or, our jsonEncode function needs to get better at encoding objects) from com.inductiveautomation.ignition.common import TypeUtilities jsonObject = TypeUtilities.pyToGson(\<yourobject\>) print jsonObject
