As @dceejay says split the array then use a change node to assign the topic and payload.
e.g.
[{"id":"fc897e5e.f485a8","type":"inject","z":"5a245aa1.510164","name":"","props":[{"p":"results","v":"[{\"test\":1,\"test2\":\"mac1\"},{\"test\":2,\"test2\":\"mac2\"}]","vt":"json"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":70,"y":2320,"wires":[["c5704e98.b523"]]},{"id":"c5704e98.b523","type":"change","z":"5a245aa1.510164","name":"","rules":[{"t":"move","p":"results","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":230,"y":2340,"wires":[["e1c153d0.22aec8"]]},{"id":"e1c153d0.22aec8","type":"split","z":"5a245aa1.510164","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":370,"y":2320,"wires":[["cc69692e.4d81e8"]]},{"id":"cc69692e.4d81e8","type":"change","z":"5a245aa1.510164","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"payload.test2","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"payload.test","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":2320,"wires":[["96985776.50d0c8"]]},{"id":"96985776.50d0c8","type":"debug","z":"5a245aa1.510164","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":530,"y":2220,"wires":[]},{"id":"22536548.e9649a","type":"ui_template","z":"5a245aa1.510164","group":"8b5cde76.edd58","name":"","order":5,"width":0,"height":0,"format":"","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":340,"y":2220,"wires":[["96985776.50d0c8"]]},{"id":"b7a39483.c2f368","type":"template","z":"5a245aa1.510164","name":"","field":"template","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<iframe width=\"650\" height=\"450\" src=\"https://embed.windy.com/embed2.html?lat={{payload.lat}}&lon={{payload.lon}}&detailLat=76.206&detailLon=20.566&width=650&height=450&zoom=3&level=surface&overlay=wind&product=ecmwf&menu=&message=&marker=&calendar=now&pressure=&type=map&location=coordinates&detail=&metricWind=default&metricTemp=default&radarRange=-1\" frameborder=\"0\"></iframe>","output":"str","x":170,"y":2220,"wires":[["22536548.e9649a"]]},{"id":"a6f2d75a.014708","type":"inject","z":"5a245aa1.510164","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"1","topic":"","payload":"{\"lat\":76.206,\"lon\":20.566}","payloadType":"json","x":110,"y":2120,"wires":[["b7a39483.c2f368"]]},{"id":"60f94d0e.b5998c","type":"inject","z":"5a245aa1.510164","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":"1","topic":"","payload":"{\"lat\":76.206,\"lon\":50.566}","payloadType":"json","x":110,"y":2160,"wires":[["b7a39483.c2f368"]]},{"id":"8b5cde76.edd58","type":"ui_group","name":"","tab":"8f03e639.85956","order":1,"disp":true,"width":"6","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]