Exporting JSON
Download pages as JSON in the diagram format to version them, render them with the CLI or import them again.
Export#
- Editor: Export → JSON in the header or the Diagram menu. A one-page diagram downloads at once. For several pages, check the ones you want and click Export. Export page as JSON in ⌘K exports the current page.
- Dashboard: ⋯ → Download → JSON, with the same page picker. The download includes changes that people are still making in the editor.
| You export | You get |
|---|---|
| One page | A .json file named after the diagram and the page, such as Checkout-Request-flow.json. |
| Several pages | A .zip named after the diagram, with one file per page named after it, such as Request flow.json. |
Each file holds one page, with its styles and pricing settings:
{
"nodes": [],
"arrows": []
}The page's name is only in the file name. Image nodes keep their image's id, not the picture. See Exports and JSON.
Round trip#
Drop the files on a project to import them: a .json becomes a one-page diagram, and a .zip one diagram with a page per file. To get a page's JSON without a download, use Copy JSON in the code panel.