✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
clean codebase
Aykut Saraç6a89b0e57c4d
diff --git a/src/utils/json-editor-parser.ts b/src/utils/json-editor-parser.tsindex 50ca0a2f..3c715332 100644--- a/src/utils/json-editor-parser.ts+++ b/src/utils/json-editor-parser.ts@@ -23,17 +23,13 @@ export const parser = (input: string | string[]): FlowElement[] => {)),},- position: { x: 0, y: 0 },- type: "special",children: Object.entries(o).filter(([k, v]) => Array.isArray(v) || typeof v === "object").flatMap(([k, v]) => [{id: nextId(),data: { label: k },- position: { x: 0, y: 0 },children: extract(v, nextId),- type: "special",},]),}));