title: how to convert below string to list of map?
body: <p>how can i convert below string to list of map?</p>
  
  <pre><code>[
      {externalId=externalId_2, 
      externalIdDocId=abc, 
      partyRoleExternalIdType=type_extId
      }, 
      {externalId=externalId_3, 
      externalIdDocId=xyz, 
      partyRoleExternalIdType=type_extId2
      }
  ]
  </code></pre>
  
  <p>i have tried converting the string to list of strings</p>
  
  <pre><code>List&lt;String&gt; externalIdlist = (List&lt;String&gt;) gson.fromJson(cbExternalIds, List.class);
  </code></pre>
  
  <p>and then convert one by one each string to map</p>
  
  <pre><code>Map&lt;String, String&gt; externalIdMap = gson.fromJson(gson.toJson(externalIdlist.get(i)), Map.class);
  </code></pre>
  
  <p>this works but is there a better solution?</p>