java - ArrayList sent to server: Data retrieval -


in android application have arraylist is: [1, 2, 8]

i sending array list in job backed django view, need process further.

so calling tostring() method convert string , send server.

inside view on getting parameter request , on trying print have received get: [1, 2, 8].

but on trying 1st element, calling varialble[0] getting: [ , on calling variable[1] getting 1.

i want extract numbers variable , use them further processing. going wrong?

when convert arraylist values string, '[' treated string in convesrsion. u may use json kind of object using javascript , append request parameters. in django, can use dictionaries parse json data key-value pairs.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -