title: Gson to HashMap
body: <p>Is there a way to convert a String containing json to a HashMap, where every key is a json-key and the value is the value of the json-key? The json has no nested values. I am using the Gson lib.</p>
  
  <p>For example, given JSON:</p>
  
  <pre><code>{
  "id":3,
  "location":"NewYork"
  }
  </code></pre>
  
  <p>resulting HashMap:</p>
  
  <pre><code>&lt;"id", "3"&gt;
  &lt;"location", "NewYork"&gt;
  </code></pre>
  
  <p>Thanks</p>