I have to post such json using MultipartEntity.
{
arrayName":[
{
// object one
},
{
// object two
}]
}
I don't get an idea how to make such structure once posting multipartEntity object, what i have tried so far is.
MultipartEntity entity = new MultipartEntity();
entity.addPart("key","value");
.....
.....
..... all keys
httppost.setEntity(entity);
Is there any way so i can make MultipartEntity array or what?
NOTE: for separate posting one json object it work very fine. I just want to learn how to create JSONarry format, once posting with MultipartEntity.