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 ...
- Open your mind map file (MyMap.mm)
- From the menu select: File | Export | Using XSTL ...
- In the popup dialog select the Freemind2json.xsl file.
- And then select your JSON output file (typically a .js or .json file type).
- Press Export to export the file.
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.
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.