# Report issues with JSON data

**URL:** <https://forum.inductiveautomation.com/t/report-issues-with-json-data/37500>\
**Category:** Ignition\
**Created:** [August 7, 2020, 1:26pm UTC](https://forum.inductiveautomation.com/t/report-issues-with-json-data/37500 "2020-08-07T13:26:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![philc](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@philc](https://forum.inductiveautomation.com/u/philc)\
**Post date:** [August 7, 2020, 1:26pm UTC](https://forum.inductiveautomation.com/t/report-issues-with-json-data/37500/1 "2020-08-07T13:26:46Z")

</div>

I am struggling in my attempt to create a report using some http json as a datasource. in my first attempt the data loads but I don’t get access to the individual fields to properly create a report. If I manually enter the fields then I can create a report but this is not ideal. In the second attempt the desired fields are created but my report will only load the first record. I am not sure what the proper method is to create a script that can give me the best of both of these. My fields for generating the report and all the data present in my report. Please point me in the right direction. Thanks,

 ![JSONReport](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/7/d766b36f247c51c91095906819c45dfd28e42165.png)

---

<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:** [August 7, 2020, 1:31pm UTC](https://forum.inductiveautomation.com/t/report-issues-with-json-data/37500/2 "2020-08-07T13:31:10Z")

</div>

The report generator likes datasets. Consider iterating through your JSON to produce a flat dataset. Or script nested datasets like so:

> [@Report with Scripted Nested Data](http://forum.inductiveautomation.com/t/report-with-scripted-nested-data/11801):
>
> The report datasource scripting examples explain how to access the nested data in another key for use constructing a custom dataset. What I don’t see is how to construct nested data that would be suitable for use with a child table in a table group. I have a parent dataset that I’m constructing via script due to annoying limitations of an ancient SQL Server 2000 instance. I need a subquery for each row that could be done with a normal query, but there’s no way to add a regular subquery to a s…

(Draw from your JSON instead of scripted queries like that example.)

---

<div class="post-metadata">

**Author:** ![philc](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@philc](https://forum.inductiveautomation.com/u/philc)\
**Post date:** [August 7, 2020, 3:43pm UTC](https://forum.inductiveautomation.com/t/report-issues-with-json-data/37500/3 "2020-08-07T15:43:39Z")

</div>

Are there built in functions for flattening the json like pandas? I don’t fully understand the examples provided.

---

<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:** [August 7, 2020, 5:33pm UTC](https://forum.inductiveautomation.com/t/report-issues-with-json-data/37500/4 "2020-08-07T17:33:18Z")

</div>

There’s nothing built-in to help you.
