Creating JSONObjects in android
<p>I need to form a JSON object like this. </p>

<pre><code>{
    "GroupID": 24536,
    "Section": [1,2,3,4,5]
}
</code></pre>

<p>Here is what i have tried, but the section array is not getting properly formed when i look at my object structure. </p>

<pre><code>JSONObject Object = new JSONObject();
Object.put("Group", GroupID);
int[] section = {1,2,3,4,5};
Object.put("Section", section);
</code></pre>
