# Is it possible to store the session scripts from Perspective as js (or json) rather than .bin?

**URL:** <https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358>\
**Category:** Ignition\
**Tags:** perspective, ignition81, scripting, vision\
**Created:** [April 21, 2025, 10:44pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358 "2025-04-21T22:44:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [April 21, 2025, 10:44pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358/1 "2025-04-21T22:44:34Z")

</div>

Basically, asking if there's a way to set ResourceEncoding in the same way as you can for Vision

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 21, 2025, 11:02pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358/2 "2025-04-21T23:02:03Z")

</div>

Which resource exactly are you asking about (path on file system)? Odds are it's already been converted to JSON for 8.3.

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [April 21, 2025, 11:14pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358/3 "2025-04-21T23:14:56Z")

</div>

projects\[Project\_name]\com.inductiveautomation.perspective\session-scripts

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 21, 2025, 11:33pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358/4 "2025-04-21T23:33:08Z")

</div>

Looks like JSON in 8.3.

---

<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:** [April 22, 2025, 12:02am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358/5 "2025-04-22T00:02:49Z")

</div>

As a fun bit of history, despite being saved as `data.bin` files, session event scripts in particular are actually utf-8 JSON on disk even in 8.1. The storage format is different in 8.3 (and much more pleasant to interact with) but if you just convince your editor they're a text file you can edit them now.

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [April 22, 2025, 12:03am UTC](https://forum.inductiveautomation.com/t/is-it-possible-to-store-the-session-scripts-from-perspective-as-js-or-json-rather-than-bin/105358/6 "2025-04-22T00:03:56Z")

</div>

...wow, I'm losing my touch for not detecting that 🙂
