Repeating with named keys

I am using a client side repeater and when I use this array it works:

{
        "game_code" : "five_kings",
        "max_players" : 7,
        "min_players" : 2,
        "name" : "Five Kings",
        "status" : "active"
      },
      {
        "game_code" : "skip_yo",
        "max_players" : 5,
        "min_players" : 2,
        "name" : "FSkip Yo",
        "status" : "active"
      }

But when I use this object it will not:


    {
      "5k" : {
        "game_code" : "five_kings",
        "max_players" : 7,
        "min_players" : 2,
        "name" : "Five Kings",
        "status" : "active"
      },
      "sy" : {
        "game_code" : "skip_yo",
        "max_players" : 5,
        "min_players" : 2,
        "name" : "FSkip Yo",
        "status" : "active"
      }
    }

Is it possible to use a repeater on an object or does it have to be an array?

Community Page
Last updated: