I have a URL, lets say for example www.example.com/movies/
, which has the following JSON array:
[
{
"id": "alice",
"director": "Tim Burton",
"year": "2010",
"image":"alice",
"length": "108 min",
"stars": "Mia Wasikowska, Johnny Depp, Helena Bonham Carter",
"name": "Alice in Wonderland",
"description": "Nineteen-year-old Alice returns to the magical world from her childhood adventure, where she reunites with her old friends and learns of her true destiny: to end the Red Queen's reign of terror.",
"rating": "6.5",
"url": "http:\/\/ia.media-imdb.com\/images\/M\/MV5BMTMwNjAxMTc0Nl5BMl5BanBnXkFtZTcwODc3ODk5Mg@@._V1_SY317_CR0,0,214,317_AL_"
},
{
"id": "avator",
"director": "Cameron",
"year": "2009",
"image":"avatar",
"length": "162 min",
"stars": "Sam Worthington, Zoe Saldana, Sigourney Weaver",
"name": "Avatar",
"description": "A paraplegic Marine dispatched to the moon Pandora on a unique mission becomes torn between following his orders and protecting the world he feels is his home.",
"rating": "7.9",
"url": "http:\/\/ia.media-imdb.com\/images\/M\/MV5BMTYwOTEwNjAzMl5BMl5BanBnXkFtZTcwODc5MTUwMw@@._V1_SY317_CR0,0,214,317_AL_"
}]
I want to fetch this JSON array from Android and convert it into a Hashmap. Please help me.