I have a string
'ABC':"sharath\'"
which I want to change to
"ABC":"sharath\'"
But whenever I want to replace outside single quote with double quote, it also replaces the inside one.
var data = "'ABC':\"sharath\\'\"";
var data1 = data.replace(/\'/g,'\"');
Do you have any resolution you can suggest for this?