title: How to display data from a JSON object with sigma.js
body: <p>I would like to read node/edges information for a graph (sigma.js)
  from a JSON variable. While it's quite easy to use an external JSON file
  as input via a JSON parser, I could not find a way to use a JSON object 
  directly defined in the JavaScript code. 
  There seems to exist a method called 'read', but I could not get 
  it to work (Source: <a href="https://github.com/jacomyal/sigma.js/wiki/Graph-API" rel="noreferrer">https://github.com/jacomyal/sigma.js/wiki/Graph-API</a>).
  Could someone give me a hint?</p>
  
  <p>This is what I would like to have:</p>
  
  <pre><code>data = {
    "nodes": [
      {
        "id": "n0",
        "label": "A node",
        "x": 0,
        "y": 0,
        "size": 3
      },
      {
        "id": "n1",
        "label": "Another node",
        "x": 3,
        "y": 1,
        "size": 2
      },
    ],
    "edges": [
      {
        "id": "e0",
        "source": "n0",
        "target": "n1"
      },
    ]
  }
  
  sigma.parsers.json( data , {
    container: 'container',
    settings: {
      defaultNodeColor: '#ec5148'
    }
  });
  </code></pre>
  
  <p>Thank you, cheers, Michael</p>