title: Convert json string to Java Map(JSONLib)
body: <p>How can I convert json string to Java Map using JSON-lib(http://json-lib.sourceforge.net/) ?
  I can convert to DynaBean:</p>
  
  <pre><code>JSONObject jsonObject = (JSONObject) JSONSerializer.toJSON( str );  
  DynaBean bean = (DynaBean) JSONSerializer.toJava( jsonObject );  
  </code></pre>
  
  <p>but I have not found a method to convert directly to Java Map</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I have found the solution:</p>
  
  <pre><code>JSONObject jsonObject = (JSONObject) JSONSerializer.toJSON( str );
  Map&lt;String, Object&gt; myMap = (Map&lt;String, Object&gt;) JSONObject.toBean(jsonObject, Map.class)
  </code></pre>