# Extract and separate payload data

**URL:** https://discourse.nodered.org/t/extract-and-separate-payload-data/62110
**Category:** General
**Created:** [3 May 2022 10:27 UTC](https://discourse.nodered.org/t/extract-and-separate-payload-data/62110 "2022-05-03T10:27:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SimonRAPP](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SimonRAPP](https://discourse.nodered.org/u/SimonRAPP)
#### Post date: [3 May 2022 10:27 UTC](https://discourse.nodered.org/t/extract-and-separate-payload-data/62110/1 "2022-05-03T10:27:39Z")

</div>

Hello,

Using an HTTP request, I want to get the 100 last messages of my sigfox device.  
The problem is that the 100 messages are put one after the other in the msg.payload.  
It looks like this :

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/d/fd817244bebd4b78d5dcbc2978b07225af81fcbe.png)

So, I want to organise this data in the following way :

payload :  
message 1 :  
seqnumber :  
data :  
message 2 :  
seqnumber :  
data :  
...  
message n :  
seqnumber :  
data :  
message 100 :  
seqnumber :  
data :

I have no idea how to obtain this result.

Someomne know how to do that ?

Best regards,

Simon

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [3 May 2022 10:46 UTC](https://discourse.nodered.org/t/extract-and-separate-payload-data/62110/2 "2022-05-03T10:46:32Z")

</div>

First things first, set the http request node to parse JSON to object

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/9/a91dd4e484c104b1f8c050be98059fa135196fd0.png)

Then you can access any element you need.

#### Here is some canned text to help...

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<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: [2 July 2022 10:46 UTC](https://discourse.nodered.org/t/extract-and-separate-payload-data/62110/3 "2022-07-02T10:46:44Z")

</div>

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