title: How to convert a JSON string to a Map<String, String> with Jackson JSON
body: <p>I'm trying to do something like this but it doesn't work:</p>
  
  <pre><code>Map&lt;String, String&gt; propertyMap = new HashMap&lt;String, String&gt;();
  
  propertyMap = JacksonUtils.fromJSON(properties, Map.class);
  </code></pre>
  
  <p>But the IDE says: </p>
  
  <blockquote>
    <p>Unchecked assignment <code>Map to Map&lt;String,String&gt;</code></p>
  </blockquote>
  
  <p>What's the right way to do this?
  I'm only using Jackson because that's what is already available in the project, is there a native Java way of converting to/from JSON?</p>
  
  <p>In PHP I would simply <code>json_decode($str)</code> and I'd get back an array. I need basically the same thing here.</p>