Parsing different JSON structures with PI Connector for UFL

The Github examples show how to parse a JSON structure that has tag/value pairs like the following with ForEach: { "timestamp":"1433409463", "rowType":"data", "rigName":"ericg03", "toolName":"Power_System3", "channels":[ {"tag":"controller.stats.cpuUsage_percent","value":"8.657751"}, {"tag":"controller.stats.idleTime_hours","value":"194.806808"}, {"tag":"controller.stats.logSizeKB","value":"6.48123"}, ] } Can the ForEach method be used to parse a structure where the tag names are listed, followed by values as a sub object? It looks like this, and comes from a query to the influxdb api. { "results": [ { "statement_id": 0, "series": [ { "name": "win_mem", "columns": [ "time", "Available_Bytes", "Cache_Faults_persec", "Demand_Zero_Faults_persec", ], "values": [ [ "2024-12-11T03:23:41Z", 2172071936, 1.9998654090579704, 640.9568636030796, ] ] } ] } ] }

Parents Reply Children
No Data