Using array api

1 favourites
  • 3 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • I'm trying to use apis with different responses, a simpler one, returns only one piece of data, worked correctly. The other returns a list, and this one I was unable to capture the elements within the construct.

    example response_api_array

    [ { "idjogador": 209, "nome": "Robert Abel Arboleda Escobar", "primeironome": "Robert Abel", "ultimonome": "Arboleda Escobar", "nascimento": "1991-10-22T00:00:00.000Z", "lugar": "Esmeraldas", "nacionalidade": "Ecuador", "altura": "187 cm", "posicao": "Defender", "nomepais": "Ecuador", "foto": "https://media.api-sports.io/football/players/2571.png" }, { "idjogador": 206, "nome": "Jonathan Calleri", "primeironome": "Jonathan", "ultimonome": "Calleri", "nascimento": "1993-09-23T00:00:00.000Z", "lugar": "Buenos Aires", "nacionalidade": "Argentina", "altura": "181 cm", "posicao": "Attacker", "nomepais": "Argentina", "foto": "https://media.api-sports.io/football/players/47368.png" } ]

  • Try JSON.Get(".nome")

    The "." period should always be used for relative paths.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It worked thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)