1

I need to know how to encode an object of type ArrayList<Complex Object> to json format in an Android application and how to post the encoded json string to a REST web service that consumes json?

1 Answer 1

1

you can add the arraylist as it is to jsonobject with key.

Sign up to request clarification or add additional context in comments.

1 Comment

After seeing this answer, I googled for "add arraylist to json object" as you said and I found what I exactly need in this link to an old question in Stackoverflow: stackoverflow.com/questions/12848601/arraylistobject-json , so thanks for your help Amrut.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.