hi thanks for help.
i will make my question clear
i have some sensor working ....
and i am working on the API...
to get the info.
sorry since my flow is too large to post , so i post only some info here:
1)
since i dont know how many device exist .
so i need a loop(?) to get the grab the data..
which is the imsi , rg_id
2) and i need to get the data to form another JSON object so that to pass to the DB.
Start with a Change node to Move msg.payload.data/devices to msg.payload (assuming the object you showed is in msg.payload, it is off the top of the screen so not certain). Feed that into a debug node to make sure the devices array is now in msg.payload. When that works feed it into a Split node, which will split the array into messages, one device record per message. Again use a debug node to check you now see one message for each element in the array. Then you can do what you want with those messages.
If you have not already done so then read the node red docs page Working with Messages which has a lot of useful information.