static class Comment { int user_id; String user_name; String text; } static List getSnippetComments(String snippetID) ctex { Object json = jsonDecode(loadPage(tb_mainServer() + "/tb-int/get-comments.php?id=" + parseSnippetID(snippetID))); //System.out.println("json: " + json); new List list; for (Object _row : (List) json) { Map row = (Map) _row; new Comment c; c.user_id = Integer.parseInt((String) row.get("author")); c.user_name = (String) row.get("user_name"); c.text = (String) row.get("text"); list.add(c); } return list; }