# Passing bytearray from scripting to params breaks the format

**URL:** <https://forum.inductiveautomation.com/t/passing-bytearray-from-scripting-to-params-breaks-the-format/95964>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 13, 2024, 3:22pm UTC](https://forum.inductiveautomation.com/t/passing-bytearray-from-scripting-to-params-breaks-the-format/95964 "2024-09-13T15:22:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 13, 2024, 3:31pm UTC](https://forum.inductiveautomation.com/t/passing-bytearray-from-scripting-to-params-breaks-the-format/95964/2 "2024-09-13T15:31:33Z")

</div>

Assigning anything to a Perspective property (session or component) turns anything not directly supported by JSON into a JSONified substitute. Completely breaking anything like byte arrays or other complex jython objects.

My free [Integration Toolkit module](https://forum.inductiveautomation.com/t/automation-professionals-integration-toolkit-module/74934/78) offers `sessionVarMap()`, `pageVarMap()` and `viewVarMap()` as an alternate storage location for jython objects that won't destroy their original form.

(There are alternatives using `system.util.getGlobals()`, but there be dragons.)

---

_[View the full topic](https://forum.inductiveautomation.com/t/passing-bytearray-from-scripting-to-params-breaks-the-format/95964)._
