2

i want to parse the json array which is as below. I need to get id, category etc.

"items":[{
        "id": "s_A7tiCV_XQ",
        "uploaded": "2014-08-30T17:52:42.000Z",
        "updated": "2014-10-17T10:06:04.000Z",
        "uploader": "laharimusic",
        "category": "Music",
        "title": "Aagadu Audio Jukebox || Super Star Mahesh Babu, Tamannaah [HD]",
        "description": "Aagadu Audio Jukebox Subscribe to our Youtube Channel: http://bit.ly/1hE4KpS iTunes : https://itunes.apple.com/us/album/aagadu-original-motion-picture/id914475853?uo=4&at=11lqyn Buy Your Copy on Flipkart : http://www.flipkart.com/aagadu/p/itmdzmdetrffxyyq?pid=AVMDZMDCG2CRXMFK&srno=b_42&ref=3c476642-09fe-4a9d-85b6-67ce6d3aa3b4 H...",
        "thumbnail":{
            "sqDefault": "https://i.ytimg.com/vi/s_A7tiCV_XQ/default.jpg",
            "hqDefault": "https://i.ytimg.com/vi/s_A7tiCV_XQ/hqdefault.jpg"
        },
        "player":{
            "default": "https://www.youtube.com/watch?v=s_A7tiCV_XQ&feature=youtube_gdata_player",
            "mobile": "https://m.youtube.com/details?v=s_A7tiCV_XQ"
        },
        "content":{
            "5": "https://www.youtube.com/v/s_A7tiCV_XQ?version=3&f=videos&app=youtube_gdata",
            "1": "rtsp://r3---sn-a5m7zu7r.c.youtube.com/CiILENy73wIaGQl0_ZUgtjvwsxMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp",
            "6": "rtsp://r3---sn-a5m7zu7r.c.youtube.com/CiILENy73wIaGQl0_ZUgtjvwsxMYESARFEgGUgZ2aWRlb3MM/0/0/0/video.3gp"
        },
        "duration": 1594,
        "aspectRatio": "widescreen",
        "rating": 4.201516,
        "likeCount": "2534",
        "ratingCount": 3166,
        "viewCount": 1113129,
        "favoriteCount": 0,
        "commentCount": 610,
        "accessControl":{
            "comment": "allowed",
            "commentVote": "allowed",
            "videoRespond": "moderated",
            "rate": "allowed",
            "embed": "allowed",
            "list": "allowed",
            "autoPlay": "allowed",
            "syndicate": "allowed"
        }
    }
3
  • 1
    Your array is a mess. Please post something valid. Commented Oct 18, 2014 at 19:35
  • possible duplicate of how to parse JSONArray in android Commented Oct 18, 2014 at 19:54
  • 1
    Possible duplicate of How to parse JSON in Java Commented Jan 9, 2019 at 14:40

1 Answer 1

2

You can use JSONObject and/or JSONArray checkout How to parse JSON in Android

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.