load array from json file.

Get help using Construct 2

Post » Mon Jan 27, 2014 5:23 pm

Hello, hello Does anyone know how to load an array from a json file, previously retrieved with ajax? I'm desperate ... thanks
B
35
S
6
G
5
Posts: 121
Reputation: 6,954

Post » Mon Jan 27, 2014 6:19 pm

The Ajax.Lastdata expression will be a string of the json file you retrieved. So if you do the Load From JSON action (Not sure on the actual name, but it's something along those lines) and put Ajax.LastData as the expression, it should be set to the correct data.
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Wed Jan 29, 2014 1:47 pm

Thanks for the help text, I think I managed to solve it, touring with the recovered ajax request converting it to an integer string.
a greeting
B
35
S
6
G
5
Posts: 121
Reputation: 6,954


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, lahbach, ST314 and 23 guests