in reply to perl dancer route recive array of json via xmlhttp request
Another thing to check is this line:
xhttp.send(JSON.stringify(test));
I've never used it, but I suspect that when you call stringify(), you're compiling the entire array back into a single string, which is perhaps why it's only showing up in $items[0], leaving the other two elements empty.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl dancer route recive array of json via xmlhttp request
by RamiD (Acolyte) on Oct 03, 2016 at 16:46 UTC |