How to get data from response body [duplicate]
问题 This question already has answers here : How to parse JSON in Java (31 answers) Closed 2 years ago . Im working right now with Youtube API in Java, and managed to get some data stored as CommentThreadListResponse Here is an example of its node, but list contains about 100 of them. { "snippet" : { "topLevelComment" : { "snippet" : { "textDisplay" : "SOME COMMENT" } } } }, So there is just textDisplay that remains, as something I'd like to extract into String. So my question goes "How can I do