Convert array values to array of objects

Hey :wave:,
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


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:

   "articlenumber": $[0],
   "stock": $[1] 

1 Like

Just what I was looking for! thanks

1 Like

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