JSON Generator from database for javascript_infographic