Extracting Keys from a JSONObject using keySet()

前端 未结 5 1622
走了就别回头了
走了就别回头了 2020-12-03 22:27

I\'m trying to extract the keys from a JSON Object. The JSON object, in this case, is obtained by making an API call to a social networking site called SkyRock and

5条回答
  •  失恋的感觉
    2020-12-03 22:50

    My JSONOject is jsonOject;

      Iterator  listKEY = jsonOject.keys();
                    do {
                  String newKEY = listKEY.next().toString();
                       
                    }while (listKEY.hasNext());
    

提交回复
热议问题