title: Serialize ArrayList <HashMap> via GSON
body: <p>I have the following code:</p>
  
  <pre><code>ArrayList&lt;HashMap&lt;String,String&gt;&gt; arr = new ArrayList&lt;HashMap&lt;String,String&gt;&gt;();
  arr.add(new HashMap&lt;String, String&gt;(){{
          put("title","123");
          put("link","456");
  }});
  print(arr.toString());
  print(new Gson().toJson(arr));
  </code></pre>
  
  <p>and I get the following output:</p>
  
  <pre><code>[{link=456, title=123}]
  [null]
  </code></pre>
  
  <p>But I hope it is:</p>
  
  <pre><code>[{link=456, title=123}]
  [{"title":"123","link":"456"}] //Serialize ArrayList&lt;HashMap&gt; via GSON
  </code></pre>
  
  <p>I searched a lot of posts, I have no idea.
  thanks for any response.</p>