Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix escape characters

AykutSaracb4f6a8f5aa98
diff --git a/src/containers/Editor/LiveEditor/helpers.ts b/src/containers/Editor/LiveEditor/helpers.ts
index 43a53475..4d742ab2 100644
--- a/src/containers/Editor/LiveEditor/helpers.ts
+++ b/src/containers/Editor/LiveEditor/helpers.ts
@@ -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);
}