fix escape characters

This commit is contained in:
AykutSarac 2022-08-13 13:02:51 +03:00
parent 01e4643b2e
commit b4f6a8f5aa

View File

@ -6,7 +6,10 @@ const toString = (value: string | object) => {
if (isObject) {
const entries = Object.entries(value);
const stringObj = entries.map((val) => [val[0], String(val[1])]);
const stringObj = entries.map((val) => [
JSON.stringify(val[0]).replaceAll('"', ""),
JSON.stringify(val[1]),
]);
return Object.fromEntries(stringObj);
}