parsing json for chart series data