[SOLVED] Quick question about JSON array size.

Get help using Construct 2

Post » Thu Jul 04, 2013 10:05 pm

I'm trying out the JSON and AJAX functionality in Construct 2 and I just have a quick question. I'm just too tired for getting this right.

When you load JSON data into Arrays you have to use the specific Construct 2 format for the JSON data. Which means you have to put this information before the actual data:

[CODE]
"c2array":true,
     "size":[
          xsize,
          ysize,
          zsize
     ],
[/CODE]

What I'm wondering is what array sizes (see the code window above) I should enter for this array which I generated from a my MySQL table:

[CODE]
[["1","4","5","Brasiv","12300"],["2","3","7","jimutt","6783"]]
[/CODE]

Thanks in advance,
Jimmy jimutt2013-07-05 09:23:10
B
8
S
3
G
2
Posts: 45
Reputation: 2,193

Post » Fri Jul 05, 2013 9:24 am

I managed to get it right after a much needed night of sleep ;)
The size for the array is 1,2,5.
Really don't know how I couldn't get that right last night. :P
B
8
S
3
G
2
Posts: 45
Reputation: 2,193


Return to How do I....?

Who is online

Users browsing this forum: Anonnymitet, Evanetot, plinkie and 17 guests