Load JSON to an Array...

Get help using Construct 2

Post » Wed Jan 01, 2014 5:52 pm

I dont know if I'm doing something wrong, or is it a bug, but I can not load a JSON string in to an Array:

Look:
https://googledrive.com/host/0B5et6AUuw1rHWGJZOG95RkdKcG8/index.html

and the .capx:
https://drive.google.com/file/d/0B5et6AUuw1rHOTVSaHB2SndqSjg/edit?usp=sharing


I saw a post about a bug like that in r151, but ashley wrote they will fix it by the next built, and I am currently working with r155. (also tried it on r152, same result)

Can anyone Help?
B
8
S
3
Posts: 22
Reputation: 744

Post » Wed Jan 01, 2014 6:24 pm

Your bracketing is incorrect, try:

{"c2array":true,"size":[5,1,1],"data":[[["12"]],[["23"]],[["34"]],[["45"]],[["56"]]]}
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994


Return to How do I....?

Who is online

Users browsing this forum: richardfu, zenox98 and 23 guests