I want to be able to send complex data from Flex to PHP and be able to parse that data via PHP script. I'm able to send a basic key value pair object but anything more complex than that doesn't translate accordingly.
This works...
ht.send({label:"FOO", label2:"FAA", label3:"FII", label4:"FEE"});
It translates as expected
This doesn't work...
ht.send({obj11:{label:"FOO", label2:"FAA"}, obj2:{label3:"FII", label4:"FEE"}});
It is posted as a string [object][object]
.
Is it possible to send complex data to PHP? I've tried JSON.encode(object)
. Do I need to send XML instead?