{"action":"created","issue":{"url":"https://api.github.com/repos/jacomyal/sigma.js/issues/533","labels_url":"https://api.github.com/repos/jacomyal/sigma.js/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/jacomyal/sigma.js/issues/533/comments","events_url":"https://api.github.com/repos/jacomyal/sigma.js/issues/533/events","html_url":"https://github.com/jacomyal/sigma.js/issues/533","id":64627021,"number":533,"title":"Adding edge labels to JSON parser","user":{"login":"rscott1992","id":11652318,"avatar_url":"https://avatars.githubusercontent.com/u/11652318?v=3","gravatar_id":"","url":"https://api.github.com/users/rscott1992","html_url":"https://github.com/rscott1992","followers_url":"https://api.github.com/users/rscott1992/followers","following_url":"https://api.github.com/users/rscott1992/following{/other_user}","gists_url":"https://api.github.com/users/rscott1992/gists{/gist_id}","starred_url":"https://api.github.com/users/rscott1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rscott1992/subscriptions","organizations_url":"https://api.github.com/users/rscott1992/orgs","repos_url":"https://api.github.com/users/rscott1992/repos","events_url":"https://api.github.com/users/rscott1992/events{/privacy}","received_events_url":"https://api.github.com/users/rscott1992/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T20:36:04Z","updated_at":"2015-03-26T21:07:28Z","closed_at":null,"body":"I am having trouble building a sigma.js graph with edge labels, with the input for the graph using an external JSON file. Here is the js code:\r\n\r\n    <script>\r\n    sigma.parsers.json('/project/data/graph.json', {\r\n      container: 'graph-container',\r\n      renderer: {\r\n        container: document.getElementById('graph-container'),\r\n        type: 'canvas'\r\n      },\r\n      settings: {\r\n        edgeLabelSize: 'proportional'\r\n      }\r\n    }\r\n    </script>\r\nThe error generated on chrome comes from the penultimate '}' and says \"Uncaught SyntaxError: Unexpected token /\". Below is an example of my JSON file:\r\n\r\n    \"nodes\": [\r\n        {\r\n            \"id\":\"1\",\r\n            \"label\":\"Station 1\",\r\n            \"x\" : \"0\",\r\n            \"y\" : \"0\",\r\n            \"size\" : \"10\"\r\n        },\r\n        {\r\n            \"id\":\"2\",\r\n            \"label\":\"Station 2\",\r\n            \"x\" : \"6\",\r\n            \"y\" : \"3\",\r\n            \"size\" : \"10\" \r\n        } ],\r\n    \"edges\": [\r\n        {\r\n            \"id\" : \"1\",\r\n            \"source\" : \"1\",\r\n            \"target\" : \"2\",\r\n            \"label\" : \"Rail 1\"\r\n        } ]\r\nI'm pretty new to js so it's hopefully something simple, still any assistance is much appreciated! :)"},"comment":{"url":"https://api.github.com/repos/jacomyal/sigma.js/issues/comments/86718311","html_url":"https://github.com/jacomyal/sigma.js/issues/533#issuecomment-86718311","issue_url":"https://api.github.com/repos/jacomyal/sigma.js/issues/533","id":86718311,"user":{"login":"withforesight","id":218642,"avatar_url":"https://avatars.githubusercontent.com/u/218642?v=3","gravatar_id":"","url":"https://api.github.com/users/withforesight","html_url":"https://github.com/withforesight","followers_url":"https://api.github.com/users/withforesight/followers","following_url":"https://api.github.com/users/withforesight/following{/other_user}","gists_url":"https://api.github.com/users/withforesight/gists{/gist_id}","starred_url":"https://api.github.com/users/withforesight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withforesight/subscriptions","organizations_url":"https://api.github.com/users/withforesight/orgs","repos_url":"https://api.github.com/users/withforesight/repos","events_url":"https://api.github.com/users/withforesight/events{/privacy}","received_events_url":"https://api.github.com/users/withforesight/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T21:07:28Z","updated_at":"2015-03-26T21:07:28Z","body":"did you try valid JSON\r\ncheck it here http://jsonlint.com/\r\n\r\n{\r\n    \"container\": \"graph-container\",\r\n    \"renderer\": {\r\n        \"container\": \"document.getElementById('graph-container')\",\r\n        \"type\": \"canvas\"\r\n    },\r\n    \"settings\": {\r\n        \"edgeLabelSize\": \"proportional\"\r\n    }\r\n}"}}