function replaceEscapedQuotes(inputString) {
return inputString.replace(/\"/g, "\'");
}
const jsonString = `{"aaData":[{"assetType_DisplayNameEnabled":"true","assetType_Color":"#FDBD37"}]}`;
const replacedString = replaceEscapedQuotes(jsonString);
console.log(JSON.stringify(replacedString));
console.log("Length:", replacedString.length);
Hello all i need to replace all the ” in the string to ‘ .But the issue is whenever i try to do either its not detecting or replacing gives me same string output with ” character.Any help will appreciated