graffle-json

OmniGraffle .OO3 to structured JSON converter

Graffle-JSON

npm install graffle-json
var graffle = require('graffle-json');
 
graffle.convert('path/to/file.oo3', function (errobj) {
    console.dir(obj);   // Win! 
});
[
    {
        value: 'It',
        children: [
            {
                value: 'To'
            },
            {
                value: 'Build'
            },
            {
                value: 'Nested'
            },
            {
                value: 'Hierarchical',
                children: [
                    {
                        value: 'Data'
                    }
                ]
            }
        ]
    },
    {
        value: 'Is'  
    },
    {
        value: 'Fun'
    }
]
vows test/*