title: Loop that creates a JSON in javascript
body: <p>Can someone help me construct a loop that will create this following structure? Values can be anything.</p>
  
  <pre><code>var json = [
        {
          "adjacencies": [],
          "data": {
            "$color": "#83548B",
            "$type": "circle",
            "$dim": 10
          },
          "id": "graphnode0",
          "name": "graphnode0"
        }, {
          "adjacencies": [],
          "data": {
            "$color": "#EBB056",
            "$type": "triangle",
            "$dim": 9
          },
          "id": "graphnode18",
          "name": "graphnode18"
        }, {
          "adjacencies": [],
          "data": {
            "$color": "#70A35E",
            "$type": "circle",
            "$dim": 8
          },
          "id": "graphnode19",
          "name": "graphnode19"
        }, {
          "adjacencies": [],
          "data": {
            "$color": "#C74243",
            "$type": "star",
            "$dim": 8
          },
          "id": "graphnode20",
          "name": "graphnode20"
        }
    ];
  </code></pre>