# Trying to get the following data into a ui\_table node?

**URL:** https://discourse.nodered.org/t/trying-to-get-the-following-data-into-a-ui-table-node/28647
**Category:** General
**Created:** [20 June 2020 01:59 UTC](https://discourse.nodered.org/t/trying-to-get-the-following-data-into-a-ui-table-node/28647 "2020-06-20T01:59:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [20 June 2020 01:59 UTC](https://discourse.nodered.org/t/trying-to-get-the-following-data-into-a-ui-table-node/28647/1 "2020-06-20T01:59:38Z")

</div>

Trying to get the following data into a ui\_table node?

"{"temperature\_C":28.32,"humidity":27.582653862395023,"pressure\_hPa":1002.5767212626166,"model":"BME280","heatIndex":27.222709256127676,"dewPoint\_C":7.849362883699638,"altitude\_M":89.19137469366625,"temperature\_F":82.976,"pressure\_Hg":29.606078056701822}"

But I am not sure what format the ui\_table node expects? There data looks to me, to be a JSON string, representing just one row of data.

When I convert it from a JSON string to a Java object, it seems to be the expected format for ui\_table input, but I get an empty table. I also created a column per data element, but that did not seem to work either.

This can't be that difficult can it?

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [20 June 2020 04:07 UTC](https://discourse.nodered.org/t/trying-to-get-the-following-data-into-a-ui-table-node/28647/2 "2020-06-20T04:07:24Z")

</div>

> [@Nodi.Rubrum](#):
>
> But I am not sure what format the ui\_table node expects?

It expects an array of objects.

Each element of the array is one row of your table. The automatic column generation of the underline library will define the columns for you.

Just add a change node (below config will do the trick) after the the JSON node to make it work.

 ![r-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b633abc6672fdc6661e34c02d05ecec9c7de38d5.png)

---

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [20 June 2020 07:27 UTC](https://discourse.nodered.org/t/trying-to-get-the-following-data-into-a-ui-table-node/28647/3 "2020-06-20T07:27:25Z")

</div>

Wow! Wonderful, that turned out to be quite easy.. I am surprised again just how powerful the change node is at times! I was googling for ideas how to solve it, and thought it might take some coding to resolve. Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [4 July 2020 07:27 UTC](https://discourse.nodered.org/t/trying-to-get-the-following-data-into-a-ui-table-node/28647/4 "2020-07-04T07:27:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
