I am getting the following string when I try to JSON.parse the string, I get the following error
undefined:1
{"device":"FaclonTest","data":[{"tag":"LATITUDE","value":1903.5091},{"tag":"LONGITUDE","value":07251.0348}]}
Where am I going wrong, can someone help?
var news2 = news.replace(" ","").replace("\n",""); console.log(news2); var jso= JSON.parse(news2);When parsing I get the error