Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "query": {
- "pages": {
- "7931046": {
- "pageid": 7931046,
- "ns": 0,
- "title": "Tang Aidi",
- "revisions": [
- {
- "contentformat": "text/x-wiki",
- "contentmodel": "wikitext",
- "*": "SOME TEXT"
- }
- ]
- }
- }
- }
- }
- JSONObject["pages"] not found
- JSONObject obj = new JSONObject(sEntireContent);
- JSONObject oParse=(JSONObject) obj.get("query");
- //JSONArray oPages=oParse.getJSONArray("pages");
- >>>>>>>>>> JSONObject oPages=(JSONObject) obj.get("pages");
- JSONObject firstPage=(JSONObject) oPages.get(0);
- JSONObject oRevisions=(JSONObject) firstPage.get("revisions");
- sWikitext=oRevisions.getString ("*");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement