Question regarding adding a reverse slash to a JSON file when making an Axios post request. Despite using the replace function, the backslash remains in the final output.
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);
});