Corrected 'JSON' formatting. Added utility to transform output and write to InfluxDB