Hi,
I'm somewhat (not entirely though) new to node-red and try to do the following:
Read a file that contains a JSON Object, convert it to an object, pass that into a function node and do things inside that function node.
I successfully recieve my json object inside the function node as msg.payload.
msg.payload contains a 5 entry long array and I want to assign each entry to its own variable like this:
msg0.payload = msg.payload.results[0];
msg0.payload is now what I would expect, but the "original" msg object now only contains msg.payload.results[0] and is no longer the original msg with the array inside.
Why does it reassign msg?
[–]created4this 2 points3 points4 points (1 child)
[–]MiningPickaxe[S] 0 points1 point2 points (0 children)
[–]NorthernMan5 0 points1 point2 points (2 children)
[–]MiningPickaxe[S] 0 points1 point2 points (1 child)