weyine
public class List2Json {
    public static JSONArray ProLogList2Json(List<ProgramLog> list){
         JSONArray json = new JSONArray();
         for(ProgramLog pLog : list){
             JSONObject jo = new JSONObject();
             jo.put("id", pLog.getId());
             jo.put("time", pLog.getBeginTime());
              
             json.put(jo);
         }
         return json;
    }

分类:

技术点:

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-12-23
  • 2021-12-23
  • 2021-12-17
  • 2022-03-02
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-01-02
  • 2021-12-23
  • 2021-12-15
相关资源
相似解决方案