Json Object to Java Object

PHOTO EMBED

Wed May 12 2021 01:03:34 GMT+0000 (UTC)

Saved by @karofsky #java

JSONArray userJSONArray = json.getJSONArray("data");
for (int i = 0; i < userJSONArray.size(); i++) {
    JSONObject jsonObject = userJSONArray.getJSONObject(i);
    User user = JSON.parseObject(jsonObject.toJSONString(), User.class);
}
content_copyCOPY

https://blog.csdn.net/iku5200/article/details/102571424