Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我有一个 JSONObject 已转换为 JSON 数组,我想知道如何循环遍历整个数组,找到任何 null 实例并将其替换为“”?
继承人我到目前为止,但不知道从这里去哪里
JSONObject fullNetworkfile = fullNetworkDataFromFile; JSONArray fullNetworkArray = new JSONArray(); fullNetworkArray.put(fullNetworkfile);
for (int i = 0; i < fullNetworkArray.length(); i++) { Object network = fullNetworkArray.get(i); if (network == null) { fullNetworkArray.put(i, ""); } }