How to remove double quotes from default string in javascript/Jquery
javascript, jquery
Solution
It is solved by converting current object to string and then used `eval` function,Worked solved thanks.
var eventlist = JSON.stringify(eventresult.d);//Jsonresult
var eventstring = new String();
eventstring = eventlist.toString().replace(/"/g, "");
eval(eventstring );
Problem
I have one string ``` "{'name':'xyz'}","{'name':'PQR'}" ``` I need to remove double quotes it should be ``` {'name':'xyz'},{'name':'PQR'} ``` I am able to remove double quotes but end result is always like below format ``` "{'name':'xyz'},{'name':'PQR'}" ``` i want end result should be just ``` {'name':'xyz'},{'name':'PQR'} ``` Ideas are helpful