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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -