Ajax request json file not functioning well

Get help using Construct 2

Post » Mon Nov 18, 2013 2:58 pm

I'm working on this part of my game where i request a url which is expected to return a a json string to me.
when i just call the url on my browser i get the expect dat which is
{
"c2array": "true",
"data": [
    [
      [
        "daarsat"
      ],
      [
        "oreke"
      ],
      [
        "[email protected]"
      ]
    ],
    [
      [
        2000
      ],
      [
        100
      ],
      [
        0
      ]
    ]
],
"size": [
    2,
    3,
    1
]
}


but on calling from inside construct using ajax, i don't get to be able to manipulate my data right, i loaded the expected data into an array, and tried to display as json to check the received data and i get this.
{"c2array":true,"size":[2,3,1],"data":[[[0],[0],[0]],[[0],[0],[0]]]}



Please can anyone check what i'm doing wrong[IMG]">Dasat2013-11-18 15:03:11
B
15
S
4
Posts: 138
Reputation: 2,003

Return to How do I....?

Who is online

Users browsing this forum: evillair, Fenix18, gamecorpstudio, Google [Bot], jorgmaquoi and 16 guests