What am I doing wrong here that gives me this unexpected result
[{"id":"fef7fe8fd4d77d41","type":"inject","z":"b2bde7ab2cd3fea7","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[\"2cfd92a831314f8b\",\"cheerlights\"]","payloadType":"json","x":390,"y":220,"wires":[["c729996341d595dd"]]},{"id":"5e372b637dfb3df1","type":"debug","z":"b2bde7ab2cd3fea7","name":"debug 377","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":670,"y":220,"wires":[]},{"id":"c729996341d595dd","type":"function","z":"b2bde7ab2cd3fea7","name":"function 3","func":"var homemadeSub;\nvar count = 0;\n\nhomemadeSub = (msg['payload']);\nfor (var j in homemadeSub) {\n node.warn('count:' + count);\n node.warn('j:' + j);\n count +=1;\n}","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":220,"wires":[["5e372b637dfb3df1"]]}]
FYI I have to use the for (x in array) looping construct as that is what Blocky transcodes to