var str = "\\\"";
var jsondata = JSON.stringify(response.data).replace(str, "");
This code dont work. sample JSON:
[{ ID: 1, text: \"Meat\" }
As @str commented right. But if you want to force fully remove these then you need to replace the charecters
response.data = response.data.replace(/\\/g, "");
JSON.stringify()or you won't be able to decode it back (because you'll end up with invalid JSON).JSON.parse()knows how to decode it, to get back data structures similar to those used to generate the JSON.