How do I pull the string array from this json object?

后端 未结 4 1719
日久生厌
日久生厌 2020-12-15 10:04

I am trying to get a list of available numbers from the following json object, using the class from org.json

    {
        \"response\":true,
           


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 10:10

    you need to use JSONArray to pull data in an array

    JSONObject jObj= new JSONObject(your_json_response);
    JSONArray array = jObj.getJSONArray("data");
    

提交回复
热议问题