Is there any way to convert a normal Java array or ArrayList to a Json Array in Android to pass the JSON object to a webservice?
Is there any way to convert a normal Java array or ArrayList to a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want or need to work with a Java array then you can always use the
java.util.Arraysutility classes’ staticasList()method to convert your array to aList.Something along those lines should work.
Beware that code is written offhand so consider it pseudo-code.