# StackOverflowError on jsonEncode of dict containing Dataset

**URL:** <https://forum.inductiveautomation.com/t/stackoverflowerror-on-jsonencode-of-dict-containing-dataset/117401>\
**Category:** Ignition\
**Created:** [October 8, 2026, 8:14pm UTC](https://forum.inductiveautomation.com/t/stackoverflowerror-on-jsonencode-of-dict-containing-dataset/117401 "2026-10-08T20:14:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AIO](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/aio/32/87549_2.png) [@AIO](https://forum.inductiveautomation.com/u/AIO)\
**Post date:** [October 8, 2026, 8:20pm UTC](https://forum.inductiveautomation.com/t/stackoverflowerror-on-jsonencode-of-dict-containing-dataset/117401/2 "2026-10-08T20:20:46Z")

</div>

Relevant thread. Looks like encoding the dataset first may work.

> [@\[BUG-15901\] JSON encoding and decoding a "Dataset" datatype property](https://forum.inductiveautomation.com/t/bug-15901-json-encoding-and-decoding-a-dataset-datatype-property/31617):
>
> I am trying to pass a value of “Dataset” type as a value in a dictionary which I need to store in a “String” format. Assume the following: dataset: variable of type “Dataset” dict = {‘set’ : dataset} To build the string representation for the dictionary, I am using system.util.jsonEncode. When I try to retrieve the dictionary from its string representation using system.util.jsonDecode, I do not get the dataset back in “Dataset” type. Instead, I get a representation of it in some form. Is the…

---

_[View the full topic](https://forum.inductiveautomation.com/t/stackoverflowerror-on-jsonencode-of-dict-containing-dataset/117401)._
