Ah but also not, I tried the output array of payload based on your sample,
the result is still correct:
[{"id":"4a376c99.1ad434","type":"function","z":"b3e29f7d.79d6e","name":"","func":"var arrElem = [];\n\nfor (var elem of msg.payload) {\n arrElem.push(elem);\n}\n\nmsg.payload = arrElem;\nreturn msg;","outputs":2,"noerr":0,"initialize":"","finalize":"","x":660,"y":1620,"wires":[["bca0af6a.32be5"],[]]},{"id":"fe5c0e84.c2107","type":"inject","z":"b3e29f7d.79d6e","name":"","props":[{"p":"payload"},{"p":"i","v":"1","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\"]","payloadType":"json","x":519.8958129882812,"y":1621.2222900390625,"wires":[["4a376c99.1ad434"]]},{"id":"bca0af6a.32be5","type":"change","z":"b3e29f7d.79d6e","name":"","rules":[{"t":"set","p":"elem","pt":"msg","to":"$.payload[$$.i]","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":1620,"wires":[["81a8e387.271d9"]]},{"id":"81a8e387.271d9","type":"debug","z":"b3e29f7d.79d6e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":1620,"wires":[]}]
I will confirm my flow again.
Thank you very much!