troublesum ... Sorry to bother you again but you seem knowledgeable on this stuff, so any ideas why this is happening? Pasting this from my other thread...
I know this should be fairly basic so I must be doing something wrong.
I'm sending a json_encoded string from my php file to C2. The string shows [4,3,1,3,1,2,1,1,0,3] when C2 receives it (when set in a text object). It's just 10 numbers in PHP.
I then try to load it into my C2 array with Array -> Load from JSON string (String).
The array is still empty, so I'm doing something wrong. Any ideas?
Can you identify which stage this is going wrong at? Does that string [4,3,1,3,1,2,1,1,0,3] look like a json string to you? That's what it's showing when I echo it from php to a browser, then when I show it in a text object in C2, but when I convert it into my C2 array it's just empty.
This [4,3,1,3,1,2,1,1,0,3] cannot be loaded inside the array via the load from JSON since it is not correctly formatted, I think using a tokenat and removing the [ and ], you could load the values inside an array.