add a publish method to output to highcharts compatible json