This syntax seems correct but EventID
should be EventId
The 1st and 3rd example code could be used if the msg.payload
was an array.
[EDIT]
You could also convert your payload object into an iterable array. Example :
[{"id":"dd281f4b964c7c96","type":"ui_template","z":"4895ea10b4ee9ead","group":"fe8bd71ec6128157","name":"table","order":1,"width":"29","height":"10","format":"<table>\n\n <tr ng-repeat=\"el in msg.payload\">\n <td>{{el[0]}}</td>\n <td>{{el[1]}}</td>\n </tr>\n\n</table>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":730,"y":780,"wires":[[]]},{"id":"095465e919b45cd3","type":"inject","z":"4895ea10b4ee9ead","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"Event Type\":\"piezo1se\",\"EventId\":\"0xa34cb1be7168baaf0asbb29c2£9ab2500000002\",\"SourceName\":\"Condition1\",\"Time\":\"2021-08-11714:57:02.1072\",\"ReceiveTime\":\"2021-08-11T14:52.2522\",\"Message\":\"Alarm Message created by oualia\",\"Severity\":800,\"ConditionName\":\"Error\",\"Retain\":true,\"EnabledState\":\"Enabled\",\"StatusText\":\"Good (0x00000)\",\"LastSeverity\":0,\"Comment\":\"Initialized\",\"AckedState\":\"Unacknowledged\",\"ActiveState\":\"Inactive\"}","payloadType":"json","x":250,"y":780,"wires":[["667fc249772d1731","0d4e1d868735e05b"]]},{"id":"667fc249772d1731","type":"debug","z":"4895ea10b4ee9ead","name":"1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":340,"y":720,"wires":[]},{"id":"0d4e1d868735e05b","type":"function","z":"4895ea10b4ee9ead","name":"","func":"msg.payload = Object.entries(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":780,"wires":[["dd281f4b964c7c96","d4fe41fc807c4972"]]},{"id":"d4fe41fc807c4972","type":"debug","z":"4895ea10b4ee9ead","name":"2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":590,"y":720,"wires":[]},{"id":"fe8bd71ec6128157","type":"ui_group","name":"Table","tab":"ff25ab1d26c005a4","order":1,"disp":true,"width":"30","collapse":false},{"id":"ff25ab1d26c005a4","type":"ui_tab","name":"Table","icon":"dashboard","disabled":false,"hidden":false}]