JSONObject遍历获取键值
public static void main(String[] args) throws JSONException { String str = "{FYXID:4C4600835174411190C739805DE593BC,ZFY:0,FYXMC:保安保洁费}"; JSONObject jsonObject = new JSONObject(str); Iterator<String> it = jsonObject.keys(); while(it.hasNext()){ // 获得key String key = it.next(); String value = jsonObject.getString(key); System.out.println("key: "+key+",value:"+value); }
用的miniui的例子调了一个下午终于TM调好了,有空再把miniUI excelExport导出的贴上
本文来自博客园,作者:迷神图卷,转载请注明原文链接:https://www.cnblogs.com/CryOnMyShoulder/p/7755930.html