How to parse nested JSON using GSON

后端 未结 3 1423
自闭症患者
自闭症患者 2021-01-28 00:41

I am currently making a get request using volley and in onResponse i am trying to parse the jsonObject using gson to my model.

JSON Returned after the request is made:

3条回答
  •  终归单人心
    2021-01-28 01:28

    As Mentioned by user1912026, change as below.

    private ClientData data;
    

    And change the setter and getter as below

    public ClientData getClientData() {
        return data;
    }
    
    public void setClientData(ClientData clientData) {
        this.data = clientData;
    }
    

提交回复
热议问题