Hi i get the string value from asp and I passed the string value to json.Now I want to convert into array.Here is my code
var dataset = [{
"measure": "Sheet",
"interval_s": 365 * 24 * 60 * 60,
"data": $(function () {
$("<%=lbl.ClientID%>").load(function () {
var string = $( document.getElementById("<%=lbl.ClientID%>")).innerHTML();
var splitstr = string.split(',');
var result = "";
for (i = 0; i < splitstr.length; i++) {
result += (splitstr[i]);
}
})
})
}];
and the string input is
** ['2018-09-17 09:45:47',1,'2018-09-17 10:19:24'],['2018-09-17 15:53:30',1,'2018-09-17 17:35:55'],['2018-09-17 18:54:15',0,'2018-09-17 18:55:19']**
and the output i required is in array format
['2018-09-17 09:45:47',1,'2018-09-17 10:19:24'],
['2018-09-17 > 15:53:30',1,'2018-09-17 17:35:55'],
['2018-09-17 18:54:15',0,'2018-09-17 18:55:19']