【发布时间】:2013-09-01 21:45:08
【问题描述】:
// JSON object to hold the information, which is sent to the server
JSONObject jsonObjSend = new JSONObject();
jsonObjSend.put("action", "myAction");
jsonObjSend.put("type", tipo);
目前一切正常,但如果我想添加
jsonObjSend.put("elementi", arrayOfElements);
其中 arrayOf Elements 必须是字符串数组。我该怎么办?
/**编辑
我需要的示例
{
"action": "myAction",
"type": "elementi",
"elementi": [
"3287498357",
"23472857"
]
}
【问题讨论】:
标签: java android jsonobject