Java工具类-JSON转实体类对象工具(可复制)
2024-07-01方式一、List busyTimeIndicatorAlarmThresholdList = new ArrayList();方式二、List userList = JSONArray.parseArray(str, User.class);输出:{“name”:“tom”,“id”:1}输出:User(id=1, name=tom)输出:{name=tom, id=1}_json转实体类工具
2024-07-01方式一、List busyTimeIndicatorAlarmThresholdList = new ArrayList();方式二、List userList = JSONArray.parseArray(str, User.class);输出:{“name”:“tom”,“id”:1}输出:User(id=1, name=tom)输出:{name=tom, id=1}_json转实体类工具