# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://forum.inductiveautomation.com/t/property-change-script-on-custom-object/30782)._
