Fill array with data using Load from JSON string.

Get help using Construct 2

Post » Wed Feb 13, 2013 2:54 pm

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.
Posts: 9
Reputation: 443

Post » Wed Feb 13, 2013 5:55 pm

You don't need the extra quotation marks if you're storing it in a variable or in a file.
Posts: 1,520
Reputation: 24,905

Post » Wed Feb 13, 2013 7:34 pm

Ah thank you always the small little things :D

Posts: 9
Reputation: 443

Return to How do I....?

Who is online

Users browsing this forum: asha2cool, flemmig, manamage, Reslypm1211, SimoneT, sudeep98, supreme676 and 2 guests