Converts a CSV file into json for influxdb