# Random Recursion in Perspective View

**URL:** <https://forum.inductiveautomation.com/t/random-recursion-in-perspective-view/91777>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [June 12, 2024, 7:49pm UTC](https://forum.inductiveautomation.com/t/random-recursion-in-perspective-view/91777 "2024-06-12T19:49:22Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 28, 2024, 2:54pm UTC](https://forum.inductiveautomation.com/t/random-recursion-in-perspective-view/91777/8 "2024-06-28T14:54:52Z")

</div>

> [@tmahaf](#):
>
> is a quick and reliable way to get this done

Sure, but be careful because JSON stringifys objects, which could result in data loss. It's quick and dirty and works but there are reasons not to.

I'm also not sure why @paul-griffith didn't mention it, but if you install the Ignition Extensions module, there is a `system.util.deepCopy()` function that will do this as well.

> [@Ignition Extensions - Convenience utilities for advanced users](https://forum.inductiveautomation.com/t/ignition-extensions-convenience-utilities-for-advanced-users/64615):
>
> Introducing a hopefully community-engaged effort to build a useful repository of scripting and other Ignition utilities for everyone to benefit from. Download the latest release from the [Releases](https://github.com/IgnitionModuleDevelopmentCommunity/ignition-extensions/releases) page and take advantage of the following functions: Scripting Functions system.util system.util.getContext(): Context A convenience function to retrieve the local "context" object, useful as an entrypoint to other advanced scripting. system.util.deepCopy(object): Object Converts a given Pyth…

---

_[View the full topic](https://forum.inductiveautomation.com/t/random-recursion-in-perspective-view/91777)._
