This is probably trivial to someone but I'm struggling to get this right.
What I am trying to achieve:
What I am getting:
Goal is to have all the key/values in one object. I hope this terminology is correct. Please correct if not for my education.
Flow example:
[{"id":"8d949bac.d7c2c","type":"debug","z":"f6f2187d.f17ca8","name":"Incorrect","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":540,"y":1260,"wires":[]},{"id":"1d86e5b3.84f24a","type":"inject","z":"f6f2187d.f17ca8","name":"Message 1","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"Value_A\" : \"A\" , \"Value_B\" : \"B\" }","payloadType":"json","x":220,"y":1220,"wires":[["d01fbcf6.026bf"]]},{"id":"d45c77e3.791cc8","type":"inject","z":"f6f2187d.f17ca8","name":"Message 2","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"Value_C\" : \"C\" }","payloadType":"json","x":220,"y":1260,"wires":[["d01fbcf6.026bf"]]},{"id":"d01fbcf6.026bf","type":"join","z":"f6f2187d.f17ca8","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":390,"y":1260,"wires":[["8d949bac.d7c2c"]]},{"id":"12a7c354.98d85d","type":"debug","z":"f6f2187d.f17ca8","name":"Correct","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":540,"y":1300,"wires":[]},{"id":"7e223754.7833b8","type":"inject","z":"f6f2187d.f17ca8","name":"Message 3","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"Value_A\" : \"A\" , \"Value_B\" : \"B\" , \"Value_C\" : \"C\" }","payloadType":"json","x":220,"y":1300,"wires":[["12a7c354.98d85d"]]}]
I have read here...
https://cookbook.nodered.org/basic/join-streams
And here...
Can't seem get this right. Any assistance is appreciated.
TIA