Adds reverse slash to json file when sending axios post request .Even though I use replace, backslash is not removed
axios
.post(
"https://test-manager/backend",
{
gameName: this.gameName,
platform: this.gamePlatform,
json: finalData.replace(/\\/g, ""),
}
)
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
