Hey ,
i want to change my payload[...][0] and payload[...][1]
0 == articlenumber
1 == stock
I would like to attach an image here, but somehow the upload is not working right now
{"_msgid":"01cf032528f70f17","payload":[["4011231255158","500"],["4038898600503","1"],["4011231254991","1"],["4058794457551","1"],["4058794457551","3"],["4038898600508","1"],["123","2"]],"topic":""}```
I am not entirely sure what your question is.
Small tip: if you are looking for data transformations, provide the input and the expected payload output (as node-red should produce it).
I assume you want your array to be converted to (?) :
You can use a change node, set it to a jsonata expression:
payload.{
"articlenumber": $[0],
"stock": $[1]
}
1 Like
Just what I was looking for! thanks
1 Like
system
Closed
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.