inserted each data point to array and then convert the array to JSON
deleted unnessary output