How do I load JSONData into array?

0 favourites
  • 6 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • EDIT

    I have a list of URLs for individual images in JSON format on my server.

    The file looks like this:


    How would be the best way to load each one of these urls (elements) into an array?

    Thank you!


  • Should I first create a json object to store the data before load the urls into an array? If so how should be formatted this json file to store each url as an array individual element value?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    You can also check this thing called Google.


    You can also check this thing called Google.

    Well, I know google and I'm sure you know that but that's ok if you just have time to try to be fun, no problem... And I did it search before open a new question here, but unfortunately my experience with json data manipulation apparently its not so good as yours and any of the tutorials that I found had and example like mine. Thanks anyway!


    And it will make more sense if you have linked this tutorial that shows you how to load a array from a server

    Unfortunately it also doesn't work because its json array format is different from mine and using the action array load from json in my case desnt work.

  • You need to load this data into JSON object first, then parse, then copy to array. See the official JSON template:

    After parsing you can do:

    JSON For each entry in "response.urlLIST"

    and insert JSON.CurrentValue into array.

  • Thank you very much dop2000, it's working now.

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