{"action":"opened","issue":{"url":"https://api.github.com/repos/bigtone1284/rail_time/issues/8","labels_url":"https://api.github.com/repos/bigtone1284/rail_time/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/bigtone1284/rail_time/issues/8/comments","events_url":"https://api.github.com/repos/bigtone1284/rail_time/issues/8/events","html_url":"https://github.com/bigtone1284/rail_time/issues/8","id":55195608,"number":8,"title":"parsing nested collection advice","user":{"login":"bigtone1284","id":7755586,"avatar_url":"https://avatars.githubusercontent.com/u/7755586?v=3","gravatar_id":"","url":"https://api.github.com/users/bigtone1284","html_url":"https://github.com/bigtone1284","followers_url":"https://api.github.com/users/bigtone1284/followers","following_url":"https://api.github.com/users/bigtone1284/following{/other_user}","gists_url":"https://api.github.com/users/bigtone1284/gists{/gist_id}","starred_url":"https://api.github.com/users/bigtone1284/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigtone1284/subscriptions","organizations_url":"https://api.github.com/users/bigtone1284/orgs","repos_url":"https://api.github.com/users/bigtone1284/repos","events_url":"https://api.github.com/users/bigtone1284/events{/privacy}","received_events_url":"https://api.github.com/users/bigtone1284/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-22T19:14:40Z","updated_at":"2015-01-22T19:14:40Z","closed_at":null,"body":"@htella @harimohanraj89 @DrRobotmck \r\n\r\nEsteemed Instructors, I am running into some difficulty filtering through my MTA API Response.  I am trying to break it down into logical steps, but am feel as though my method of filtering the Response might take too much computer time.  Maybe I am wrong.  \r\n\r\nWith the API Response I currently get from the MTA, I get a listing of all trains running.  First I filter by line.  Then I filter all of those trains based on their direction (N or S).  \r\n\r\nNow I need to find if an individual station is on the remaining lines.  Stops exist as part of a nested collection within each Train.  \r\n\r\nI'd like to return the Trains ID (which sits on a more senior level of the collection) and the stop data with regards to this train (much more junior).  \r\n\r\nI already feel like my filtering methods are too slow....\r\n\r\nCurrently I have my methods in this Gist, as I am working out of this playground file before putting into my MTA Module.  \r\n\r\nhttps://gist.github.com/bigtone1284/c3a20278c882913a0eb4"}}