This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Represent an Array of values in my Model  RSS feed

 
Geane Norm
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
my API returns the following:

{
      "id": 1,
      "name": "sample string 2",
      "nameKey": "sample string 3",
      "code": "sample string 4",
      "urls": [
        {
          "rel": "sample string 1",
          "href": "sample string 2"
        },
        {
          "rel": "sample string 1",
          "href": "sample string 2"
        },
        {
          "rel": "sample string 1",
          "href": "sample string 2"
        }
      ]
    },


In my Model I have something like this:



How do you represent an array of values like:  

in my Model?

Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!