# system.util.jsonEncode/Decode locale indipendent

**URL:** <https://forum.inductiveautomation.com/t/system-util-jsonencode-decode-locale-indipendent/39794>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [October 19, 2020, 11:58am UTC](https://forum.inductiveautomation.com/t/system-util-jsonencode-decode-locale-indipendent/39794 "2020-10-19T11:58:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mau89](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mau89/32/20680_2.png) [@Mau89](https://forum.inductiveautomation.com/u/Mau89)\
**Post date:** [October 19, 2020, 11:58am UTC](https://forum.inductiveautomation.com/t/system-util-jsonencode-decode-locale-indipendent/39794/1 "2020-10-19T11:58:37Z")

</div>

Hi,  
I am working with json and function system.util.jsonEncode/Decode , I had some problem to use because the system function are not independent by user locale. Expecialy when you work on dataset.

I partially resolved with the trick of set user locale to “en\_US” before to use this functions and after reset the correct locale of user.

Is it possible to implement this directly in the function?

Thanks

---

<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:** [October 19, 2020, 4:59pm UTC](https://forum.inductiveautomation.com/t/system-util-jsonencode-decode-locale-indipendent/39794/2 "2020-10-19T16:59:37Z")

</div>

We probably won’t change the jsonEncode/decode functions at this point, for backwards compatibility reasons, but we have internal plans to introduce new JSON handling functions that work better across all Ignition systems.
