drichard/mindmaps

open another json in mindmap

Closed this issue · 0 comments

Hi,

Is there a wrapper to fit any json into a structure that can be opened here. As seen from a saved mindmap, it has more info elements in json than just what appears in the file. Example

{"id":"18ffca21-ec69-4add-8910-f677bad71973","title":"Central Idea","mindmap":{"root":{"id":"252f573a-69fe-4322-8bc1-0900391bbb31","parentId":null,"text":{"caption":"Central Idea","font":{"style":"normal","weight":"bold","decoration":"none","size":20,"color":"#000000"}},"offset":{"x":0,"y":0},"foldChildren":false,"branchColor":"#000000","children":[{"id":"8128c30a-1d3c-4d31-a3e0-cfb9933a90a7","parentId":"252f573a-69fe-4322-8bc1-0900391bbb31","text":{"caption":"test","font":{"style":"normal","weight":"normal","decoration":"none","size":15,"color":"#000000"}},"offset":{"x":-79,"y":-258},"foldChildren":false,"branchColor":"#0e6fe6","children":[]},{"id":"055d9bbe-96de-4b08-9179-8babb6f74726","parentId":"252f573a-69fe-4322-8bc1-0900391bbb31","text":{"caption":"result","font":{"style":"normal","weight":"normal","decoration":"none","size":15,"color":"#000000"}},"offset":{"x":61,"y":358},"foldChildren":false,"branchColor":"#ffbc9d","children":[]}]}},"dates":{"created":1441948237286,"modified":1441948450987},"dimensions":{"x":4000,"y":2000},"autosave":false}

If my json file does not have an id ( like the one above ) it will not open. Error

"File is not a valid mindmap"

How is it possible to open any json here. ❓

Edit : does there exists an api that will help edit any json file to fit into here . How to use this api, if it exists ?