started JSON output for histograms