{"action":"closed","issue":{"url":"https://api.github.com/repos/vijayantajain/Argus/issues/6","repository_url":"https://api.github.com/repos/vijayantajain/Argus","labels_url":"https://api.github.com/repos/vijayantajain/Argus/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/vijayantajain/Argus/issues/6/comments","events_url":"https://api.github.com/repos/vijayantajain/Argus/issues/6/events","html_url":"https://github.com/vijayantajain/Argus/issues/6","id":367650225,"node_id":"MDU6SXNzdWUzNjc2NTAyMjU=","number":6,"title":"Accessing data from the JSON File","user":{"login":"vijayantajain","id":14321735,"node_id":"MDQ6VXNlcjE0MzIxNzM1","avatar_url":"https://avatars2.githubusercontent.com/u/14321735?v=4","gravatar_id":"","url":"https://api.github.com/users/vijayantajain","html_url":"https://github.com/vijayantajain","followers_url":"https://api.github.com/users/vijayantajain/followers","following_url":"https://api.github.com/users/vijayantajain/following{/other_user}","gists_url":"https://api.github.com/users/vijayantajain/gists{/gist_id}","starred_url":"https://api.github.com/users/vijayantajain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijayantajain/subscriptions","organizations_url":"https://api.github.com/users/vijayantajain/orgs","repos_url":"https://api.github.com/users/vijayantajain/repos","events_url":"https://api.github.com/users/vijayantajain/events{/privacy}","received_events_url":"https://api.github.com/users/vijayantajain/received_events","type":"User","site_admin":false},"labels":[{"id":1072848200,"node_id":"MDU6TGFiZWwxMDcyODQ4MjAw","url":"https://api.github.com/repos/vijayantajain/Argus/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1072848206,"node_id":"MDU6TGFiZWwxMDcyODQ4MjA2","url":"https://api.github.com/repos/vijayantajain/Argus/labels/question","name":"question","color":"d876e3","default":true}],"state":"closed","locked":false,"assignee":{"login":"vijayantajain","id":14321735,"node_id":"MDQ6VXNlcjE0MzIxNzM1","avatar_url":"https://avatars2.githubusercontent.com/u/14321735?v=4","gravatar_id":"","url":"https://api.github.com/users/vijayantajain","html_url":"https://github.com/vijayantajain","followers_url":"https://api.github.com/users/vijayantajain/followers","following_url":"https://api.github.com/users/vijayantajain/following{/other_user}","gists_url":"https://api.github.com/users/vijayantajain/gists{/gist_id}","starred_url":"https://api.github.com/users/vijayantajain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijayantajain/subscriptions","organizations_url":"https://api.github.com/users/vijayantajain/orgs","repos_url":"https://api.github.com/users/vijayantajain/repos","events_url":"https://api.github.com/users/vijayantajain/events{/privacy}","received_events_url":"https://api.github.com/users/vijayantajain/received_events","type":"User","site_admin":false},"assignees":[{"login":"vijayantajain","id":14321735,"node_id":"MDQ6VXNlcjE0MzIxNzM1","avatar_url":"https://avatars2.githubusercontent.com/u/14321735?v=4","gravatar_id":"","url":"https://api.github.com/users/vijayantajain","html_url":"https://github.com/vijayantajain","followers_url":"https://api.github.com/users/vijayantajain/followers","following_url":"https://api.github.com/users/vijayantajain/following{/other_user}","gists_url":"https://api.github.com/users/vijayantajain/gists{/gist_id}","starred_url":"https://api.github.com/users/vijayantajain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijayantajain/subscriptions","organizations_url":"https://api.github.com/users/vijayantajain/orgs","repos_url":"https://api.github.com/users/vijayantajain/repos","events_url":"https://api.github.com/users/vijayantajain/events{/privacy}","received_events_url":"https://api.github.com/users/vijayantajain/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-10-08T06:14:17Z","updated_at":"2018-10-15T17:46:40Z","closed_at":"2018-10-15T17:46:39Z","author_association":"OWNER","body":"So I am able to read the JSON file but I am having some trouble. I am able to list all the nodes (\"compute-1-1\", \"compute-8-1\", etc.), however, I am not able to access the attributes inside these nodes, such as `arrTemperatureCPU1`, `arrFanSpeed` etc.\r\n\r\nHere is how I am trying to access the data\r\n\r\n```JavaScript\r\nlet jsonFile = require('..\\data\\testData.json');\r\nconsole.log(jsonFile.compute-1-1.arrTemperatureCPU1[0]);\r\n```\r\nThis should return 63, based on the data we have, but I am getting a syntax error. I am thinking this is because of the naming style of the compute nodes - `compute-1-1` instead of `compute_1_1`. Because I am getting a `SyntaxError`. \r\n\r\nCan anyone solve this?"}}
{"actor":{"display_login":"vijayantajain"}}