Make a JSON pipeline.
Compute averages of time windows.