private Entity getEntity(String resp){
        JSONObject jsonObj = (JSONObject) JSON.parse(resp);
        if (jsonObj.getJSONArray("data") != null) {
            jsonObj = jsonObj.getJSONArray("data").getJSONObject(0);
        }
        jsonObj.remove("******");
        Entity entity= JSONObject.toJavaObject(jsonObj,Entity.class);
        return entity;
    }

转好了。

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2022-01-17
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-11-30
  • 2021-07-29
  • 2022-01-11
相关资源
相似解决方案