Here is json:
{
"infos":[{
"targetId":1,
"celsius":34.5,
"measuredTime":"2021-03-25,11:40:01",
"isFirst":true }]
}
I am try to put JSONArray to JSONObject:
JSONObject object = new JSONObject();
object.put("infos" , array);
I don't know how to create a Array? please help me , thanks.