Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.45 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.45 KB

How to export FreeMind files to JSON

These XSLT scripts allow you to export mind maps created using FreeMind into JSON format files.

Add this to your toolbox for Web & Javascript development.
I'm using it to create menus and tree controls.

In FreeMind ...

  1. Open your mind map file (MyMap.mm)
  2. From the menu select: File | Export | Using XSTL ...
  3. In the popup dialog select the Freemind2json.xsl file.
  4. And then select your JSON output file (typically a .js or .json file type).
  5. Press Export to export the file.

Export a Sencha TreeStore

If you're creating JSON data for a Sencha TreeStore you can use FreeMind2TreeStoreJSON.xsl script. This will save you copy/pasting 'leaf:true' ad nausium on each leaf node. You can also maintain your own attributes in FreeMind or prune the exported tree by setting attribute with leaf=true inside FreenMind (select a node then select 'Edit Attributes' from the context menu). Any other custom attributes you add inside FreeMind will be exported as a JSON attribute.

Roll your own

You'll find these scripts a good starting point for your own custom export. It's fairly easy to convert any other FreeMind attributes or modify the resulting JSON content or formatting.

Enjoy :) Tony.