Serialise and deserialise a NetlistGraph to/from JSON.
Format (version 3):
{
"version": 3,
"fileTable": ["test.sv", "other.sv"],
"blackBoxes": ["m.u_core"],
"nodes": [
{"id": 1, "kind": "Port", "path": "m.a", "name": "a",
"bounds": [0, 0], "direction": "In",
"location": {"fileIndex": 0, "line": 2, "column": 31}}
],
"edges": [
{"source": 1, "target": 3, "edgeKind": "None",
"symbol": {"name": "a", "path": "m.a",
"location": {"fileIndex": 0, "line": 2, "column": 31}},
"bounds": [0, 0], "disabled": false}
]
}