I have json that describes the diagram.
How to create new document with the following json:
{
"nodes": [
{
"id": "A"
"type": "rectangle"
"text": "App Manager"
}
{
"id": "B"
"type": "rectangle"
"text": "Visual"
}
{
"id": "C"
"type": "rectangle"
"text": "ClientFromServer"
}
{
"id": "D"
"type": "rectangle"
"text": "ClientToServer"
}
{
"id": "E"
"type": "rectangle"
"text": "ClientFromCtpty"
}
{
"id": "F"
"type": "rectangle"
"text": "ClientToCtpy"
}
]
"edges": [
{
"type": "standard"
"path": [
{
"node": "A"
"port": "right"
}
{
"node": "B"
"port": "left"
}
]
}
{
"type": "standard"
"path": [
{
"node": "A"
"port": "bottom"
}
{
"node": "C"
"port": "top"
}
]
}
{
"type": "standard"
"path": [
{
"node": "A"
"port": "bottom"
}
{
"node": "D"
"port": "top"
}
]
}
{
"type": "standard"
"path": [
{
"node": "C"
"port": "bottom"
}
{
"node": "E"
"port": "top"
}
]
}
{
"type": "standard"
"path": [
{
"node": "D"
"port": "bottom"
}
{
"node": "F"
"port": "top"
}
]
}
]
}