json字符串 转 JSONObject String timeInterval = "{"exeCycle":["day"],"time":"15:30:00"}"; JSONObject jsonObject = JSONObject.parseObject(timeInterval);
List 转 数组 List<String> exeCycle = (List<String>) jsonObject.get("exeCycle"); String[] array = new String[exeCycle.size()]; array = exeCycle.toArray(array);