I have an Output in JSON like this. I now have to use this data for the regression line fitting.
[{"year":"1995","values":"46.8550182"},{"year":"1996","values":"47.1409752"}, {"year":"1997","values":"46.6331669"},{"year":"1998","values":"46.3054604"]
Initially, I did this small project with the data inside the same module which was like this.
var data = [
[1995, 46.85],
[1996, 47.14],
[1997, 46.63],
[1998, 46.31],
[1999, 45.50],
[2000, 46.09],]
Now I want to take data from the JSON file and use that data for the regression line fitting. How can I do that ? Would you please help me ?