0
如何向JSONObject插入/添加數據 正試圖創建包含以下數據集的JSONObject。以某種格式插入數據ro_jsonobject
{
"feature": "testFeature",
"scenario": [{
"name": "Add numbers",
"tag": "@test"
}, {
"name": "Delete numbers",
"tag": "@test123"
}]
}
我不知道如何proceed.please幫助。
Collection<JSONObject> items = new ArrayList<JSONObject>();
JSONArray array1 = new JSONArray();
JSONObject item1 = new JSONObject();
item1.put("scenario", array1);