produce JSON timeseries using timestamps in milliseconds