{"action":"closed","issue":{"url":"https://api.github.com/repos/jtslear/expert-octo-train/issues/1","labels_url":"https://api.github.com/repos/jtslear/expert-octo-train/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jtslear/expert-octo-train/issues/1/comments","events_url":"https://api.github.com/repos/jtslear/expert-octo-train/issues/1/events","html_url":"https://github.com/jtslear/expert-octo-train/issues/1","id":121952649,"number":1,"title":"How does json work in golang?","user":{"login":"jtslear","id":1965521,"avatar_url":"https://avatars.githubusercontent.com/u/1965521?v=3","gravatar_id":"","url":"https://api.github.com/users/jtslear","html_url":"https://github.com/jtslear","followers_url":"https://api.github.com/users/jtslear/followers","following_url":"https://api.github.com/users/jtslear/following{/other_user}","gists_url":"https://api.github.com/users/jtslear/gists{/gist_id}","starred_url":"https://api.github.com/users/jtslear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtslear/subscriptions","organizations_url":"https://api.github.com/users/jtslear/orgs","repos_url":"https://api.github.com/users/jtslear/repos","events_url":"https://api.github.com/users/jtslear/events{/privacy}","received_events_url":"https://api.github.com/users/jtslear/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-13T23:37:33Z","updated_at":"2015-12-14T00:14:32Z","closed_at":"2015-12-14T00:14:32Z","body":"Due to my lack of understanding of how to parse json, I end up with output like this:\r\n```\r\n19s go % go run main.go\r\nname: place1\r\nDuration: [{[{{7 hours 50 mins}}]}]\r\nDuration: {[{[{{7 hours 50 mins}}]}] [{[{{}}]}] OK}\r\nname: place2\r\nDuration: [{[{{4 hours 17 mins}}]}]\r\nDuration: {[{[{{4 hours 17 mins}}]}] [{[{{}}]}] OK}\r\n```\r\n\r\nWhen in reality, I just straight up want a string value for duration, example:\r\n```\r\nname: place1\r\nDuration: 7 hours 50 mins\r\n```\r\n\r\nHow can I achieve this?\r\n\r\nI think my use of nesting the structs for capturing the appropriate json is where I'm going wrong.  I'm rejecting some of the json input which golang allows simply by not unmarshaling that particular bit, cuz in this case, all i currently care about is the duration.  But to get to just that bit of info, I created what I think is a horrid mess.\r\n\r\nReference documentation: https://developers.google.com/maps/documentation/directions/intro#sample-response"}}