Skip to content

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

use parsedJson

AykutSaracffa5b330fe9b
diff --git a/src/containers/JsonEditor/index.tsx b/src/containers/JsonEditor/index.tsx
index 8b83fe6f..f4947761 100644
--- a/src/containers/JsonEditor/index.tsx
+++ b/src/containers/JsonEditor/index.tsx
@@ -61,7 +61,7 @@ const JsonEditor: React.FC = () => {
const parsedJson = parseJson(value);
if (settings.autoformat) {
- setValue(JSON.stringify(JSON.parse(value), null, 2));
+ setValue(JSON.stringify(parsedJson, null, 2));
} else {
setValue(value);
}