added json view for charts