Convert JSON response into List<T>
<p>I am new to GSON. I need to convert the following JSON response into a List.</p>

<p>JSON response:</p>

<pre><code>{
    "data": [{
        "data": {
            "ac_id": "000",
            "user_id": "000",
            "title": "AAA"
        }
    }, {
        "data": {
            "ac_id": "000",
            "user_id": "000",
            "title": "AAA"
        }
    }]
}
</code></pre>

<p>I have a class to cast data</p>

<p>Account. java</p>

<pre><code>public class Account {

     public int ac_id;
     public int user_id;
     public String title;

    @Override
    public String toString(){
         return "Account{"+
         "ac_id="+ac_id+
         ", user_id="+user_id+
         ", title="+title+'}';

    }

}
</code></pre>

<p>When I cast the response with my class I get:</p>

<pre><code>[Account{ac_id="000", user_id="000", title="AAA"}, Account{ac_id="000", user_id="000", title="AAA"}]
</code></pre>

<p>Now I need to put these two values into a <code>List&lt;Account&gt;</code>.<br>
What do you suggest?</p>