For example:
{
'nodes': [
{
'id': 0,
'size': 1,
'color': 'rgba(189,8,242,0.7)',
'label': '/home/lighght/Yggdrasill/Hof/v8_clion/src/wasm/compilation-environment.h',
'group': 'src/wasm',
'x': 0.00318283616270964,
'y': 0.002160306621951876
}
]
}
The problem of this format is that it doesn't yield proper json outcome, i.e. it can't be parsed by python json.load().
An easy fix is to use json.dump() to write it.
python version: 3.9
For example:
{ 'nodes': [ { 'id': 0, 'size': 1, 'color': 'rgba(189,8,242,0.7)', 'label': '/home/lighght/Yggdrasill/Hof/v8_clion/src/wasm/compilation-environment.h', 'group': 'src/wasm', 'x': 0.00318283616270964, 'y': 0.002160306621951876 } ] }The problem of this format is that it doesn't yield proper json outcome, i.e. it can't be parsed by python
json.load().An easy fix is to use
json.dump()to write it.python version: 3.9