Done output.json format + add js lib to draw diagrams