title: List<Map<String,Object>> to org.json.JSONObject?
body: <pre><code>List&lt;Map&lt;String, Object&gt;&gt; list = new ArrayList&lt;Map&lt;String, Object&gt;&gt;();
  Map&lt;String, Object&gt; map = new HashMap&lt;String, Object&gt;();
  
  map.put("abc", "123456");
  map.put("def", "hmm");
  list.add(map);
  JSONObject json = new JSONObject(list);
  try {
      System.err.println(json.toString(2));
  } catch (JSONException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>What's wrong with this code?</p>
  
  <p>The output is:</p>
  
  <pre><code>{"empty": false}
  </code></pre>