I have the following hashMap:
{"success":true, "message":"Profile retrieved successfully", "data":{ "address":[{ "objectId":"6ItcdQGBFu", "street":"6782 NW 102nd St", "aptSuite":"782", "state":"FL", "zipCode":"33762", "city":"Brickell", "type":"Home"},{ "objectId":"yyRA9M2gk1", "street":"7828 NW Boston Rb", "state":"Massachusetts", "zipCode":"33178", "city":"Boston", "type":"Office"} ] } } If I want to access the "message", I would write the following code:
object.get("message"); Or if I wanna print it:
object.get("message").toString(); I would like to know how can I iterate and access through the "address" objects.