- stream过滤JSONArray类型数据(过滤掉online为0的数据,拿到过滤后的数量)
JSONArray jsonArray1=new JSONArray();
long count = jsonArray.stream().filter(t->((JSONObject)t).getString("online").equals("0")).count();

JSONArray jsonArray1=new JSONArray();
long count = jsonArray.stream().filter(t->((JSONObject)t).getString("online").equals("0")).count();