# How to load JSON multidimensional arrays and set them in a table

**URL:** <https://discourse.processing.org/t/how-to-load-json-multidimensional-arrays-and-set-them-in-a-table/38797>\
**Category:** Coding Questions\
**Created:** [September 16, 2022, 7:07am UTC](https://discourse.processing.org/t/how-to-load-json-multidimensional-arrays-and-set-them-in-a-table/38797 "2022-09-16T07:07:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeconfuser](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@codeconfuser](https://discourse.processing.org/u/codeconfuser)\
**Post date:** [September 16, 2022, 7:07am UTC](https://discourse.processing.org/t/how-to-load-json-multidimensional-arrays-and-set-them-in-a-table/38797/1 "2022-09-16T07:07:29Z")

</div>

Hi, I’m trying to get data from a JSON array that is outputted from a sensor, but I’m struggling to parse the data into easy columns and rows.

this is a sample of the data output

> [[1643935200000,1],[1643941200000,1],[1643954400000,1],[1643955600000,1],[1643955900000,1],[1643957400000,2],[1643958000000,2],[1643958900000,2],[1643959500000,1],[1643960100000,1],[1643961000000,1],[1643961300000,2],[1643961300000,1]]

is it possible to load the JSON array into a table to make it easier to deal with within Processing?

I’m a newbie to processing and java, but any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [September 16, 2022, 7:26am UTC](https://discourse.processing.org/t/how-to-load-json-multidimensional-arrays-and-set-them-in-a-table/38797/2 "2022-09-16T07:26:25Z")

</div>

> **[Reference](https://processing.org/reference/parseJSONArray_.html)**
>
> Takes a String, parses its contents, and returns a JSONArray. If the String does not contain JSONArray data or cannot be parsed, a null value is returned.
