By acces a single object directly i mean msg.payload[1] instead of the whole array msg.payload. This is the Flow:
[{"id":"97628b22cec87e27","type":"tab","label":"OPCUA Excample","disabled":false,"info":"","env":[]},{"id":"c0bad6bc2c4de37a","type":"function","z":"97628b22cec87e27","name":"serialize","func":"let outputArr = msg.out;\nmsg = [outputArr];\n\nnode.warn(msg)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":180,"wires":[["10e5cce26a093390"]]},{"id":"f9c934ec5832f40b","type":"function","z":"97628b22cec87e27","name":"create target array","func":"\nconst targetArray = [\"ns=3;s=\\\"DB_OPCUA\\\".\\\"Roboter2\\\".\\\"Ampel\\\".\\\"rot\\\"\", \"ns=3;s=\\\"DB_OPCUA\\\".\\\"BinPicking\\\".\\\"Ampel\\\".\\\"gelb\\\"\"]\n\nconst outputArray = targetArray.map(elem => {\n return {\n topic: elem.toString()\n }\n})\n\nmsg.out = outputArray;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":290,"y":180,"wires":[["c0bad6bc2c4de37a"]]},{"id":"667ae29a94ccd7d3","type":"inject","z":"97628b22cec87e27","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":110,"y":180,"wires":[["f9c934ec5832f40b"]]},{"id":"10e5cce26a093390","type":"OpcUa-Client","z":"97628b22cec87e27","endpoint":"d36ff8a2b9f61387","action":"readmultiple","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","folderName4PKI":"","name":"","x":700,"y":180,"wires":[["0c48a5bbf1a793bb"]]},{"id":"0c48a5bbf1a793bb","type":"function","z":"97628b22cec87e27","name":"output","func":"node.warn(msg.payload)\nnode.warn(msg.payload[1])","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":910,"y":180,"wires":[[]]},{"id":"d5f0659805b3e9c4","type":"function","z":"97628b22cec87e27","name":"readmultiple","func":"msg.payload = \"ALL\";\nmsg.topic = \"readmultiple\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":470,"y":260,"wires":[["10e5cce26a093390"]]},{"id":"27dff7c1a8644d14","type":"inject","z":"97628b22cec87e27","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":270,"y":260,"wires":[["d5f0659805b3e9c4"]]},{"id":"d36ff8a2b9f61387","type":"OpcUa-Endpoint","endpoint":"opc.tcp://192.168.1.110:4840","secpol":"None","secmode":"None","login":false}]