title: create JSONArray in Android
body: <p>I have a requirement to build JSON in the format below :</p>
  
  <pre><code>{
  "name" : "value",
  "sex" : "value",
  "details" : [
                { 
                 "Land" : "value",
                 "nationality": "value",
                 "birthDate" : "value"
                }
             ]
  } 
  </code></pre>
  
  <p>Any idea on how to accomplish this ? I looked up some libraries on Gson, a bit confusing. Thanks in advance.</p>