When i try to replace the string showing this error
below my code:"
export class HomePage {
qrData = null;
qrData2= null;
createdCode = null;
createdCode2:string;
scannedCode = null;
data:any = {};
constructor(public navCtrl: NavController) {
this.data.qrData = '';
this.data.qrData2 = '';
}
createCode() {
this.createdCode = JSON.stringify(this.data);
let jsonString = this.createCode;
jsonString = jsonString.replace(/("{|}")/gi,'"');
}
Please help me anyone
Thanks