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
Using below code you can remove double quotes from a string:
var test = "\"House\"";
alert(test);
alert(test.replace(/\"/g, ""));
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 );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With