Fill array with data using Load from JSON string.

0 favourites
  • 3 posts
From the Asset Store
An educational game for Fill in the Blanks. An easy to use template for developers to build larger games
  • I have found a weird problem and i was hoping that somebody would be able to help me. The problem is that when i try to load (be it a variable or AJAX) requested data into an array it does not fill an array with data. Though when i simply put the json string into the Load from JSON string it works fine.

    I have been searching around and found one other person with a similar problem to mine but there was no answer to his/her question really.

    JSON code:


    In the above example i simply put the json line into a variable but i have also tried to use an ajax request (after uploading the json files/compiled project to the server) also without success.

    Its probably some really silly small thing that i am missing.

    Hopefully somebody is able to help me with this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't need the extra quotation marks if you're storing it in a variable or in a file.

  • Ah thank you always the small little things :D

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