I have an arrayList after parsing JSON:
movieList = new ArrayList();
HashMap<String, String> one = new HashMap<>();
one.put("title", title);
one.put("popularity", String.valueOf(popularity));
one.put("poster", poster);
movieList.add(one);
movieList looks like this in the log: [{popularity=224, poster=/dM2w364MScsjFf8pfMbaWUcWrR.jpg, title=Pulp Fiction}]
I need to put those values in a custom Movie object that has popularity, poster and title. Then I need to create an array of those objects.
I dont know how to do that. The above code is in onPostExecute. How to set those 3 values from log as values for my Movie objects ?