I have this program that very well returns me the JSON response. But i am wondering how can i access these JSON properties individually to do data analysis on these JSON objects.
val in = Source.fromURL("https://api.github.com/search/repositories?q=tetris")
val ouput = in.getLines //> ouput : List[String]
val output = in.getLines.ToList gives following output: //> ouput : List[String] =
List({"total_count":5487,"incomplete_results":false,
//| "items":[{"id":3477759,"name":"tetris","full_name":"tdd-elevator-training/te
//| tris","owner":{"login":"tdd-elevator-training","id":1227498,"avatar_url":"ht
//| tps://avatars.githubusercontent.com/u/1227498?v=3","gravatar_id":"","url":"h
//| ttps://api.github.com/users/tdd-elevator-training","html_url":"https://githu
//| b.com/tdd-elevator-training","followers_url":"https://api.github.com/users/t
//| dd-elevator-training/followers","following_url":"https://api.github.com/user
//| s/tdd-elevator-training/following{/other_user}","gists_url":"https://api.git
//| hub.com/users/tdd-elevator-training/gists{/gist_id}","starred_url":"https://
//| api.github.com/users/tdd-elevator-training/starred{/owner}{/repo}","subscrip
//| tions_url":"https://api.github.com/users/tdd-elevator-training/subscriptions
//| ","organizations_url":"https://api.github.com/users/tdd-elevator-training/or
//| gs","repos_url":"https:/
//| Output exceeds cutoff limit.
I want to use this information, access each and every(even nested) json responses. How can i do that?