// example1.json
{
"nodes": [
{
"title": "node01",
"id": "1"
},
{
"title": "node02",
"id": "2"
}
],
"links": [
{
"source": "1",
"target": "2"
}
]
}
It must be noted that the nodes ID must be unique.
// example2.json
{
"nodes": [
{
"title": "node01"
}
]
}