How to create POJO for JSON that contains a single field and an Array?
<p>I have the following <code>JSON</code>:</p>

<pre><code>{
    "userName":"&lt;string&gt;",
    "persons": [
        {
            "id":"&lt;number&gt;",
            "name":"&lt;string&gt;"
        }
    ]
}
</code></pre>

<p>How can I create a <code>Java POJO</code> for this? I am not sure how to do so as it contains a single field (username) and also an <code>array</code>.</p>