Remove Backslashes from JSON Data in JavaScript or jQuery
var str = "{"data":"{
"taskNames" : [
"01 Jan",
"02 Jan",
"03 Jan",
"04 Jan",
"05 Jan",
"06 Jan",
"07 Jan",
"08 Jan",
"09 Jan",
"10 Jan",
"11 Jan",
"12 Jan",
"13 Jan",
"14 Jan",
"15 Jan",
"16 Jan",
"17 Jan",
"18 Jan",
"19 Jan",
"20 Jan",
"21 Jan",
"22 Jan",
"23 Jan",
"24 Jan",
"25 Jan",
"26 Jan",
"27 Jan"]}
var finalData = str.replace("", "");
but this does not work for me. Any help?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…