telemetry: format json response when sending stats