Jackson JSON object mapper deserializes to LinkedHashMap instead of HashMap
<p>I have a POJO that has an inner map. I want this to deserialize into a HashMap from my JSON, but Jackson deserializes the inner map from the JSON into a LinkedHashMap. I can force it to use HashMap by changing the type of the Map from "Map" to "HashMap", but I want to know if there is a way to tell Jackson to deserialize into a specific implementation of Map?</p>

<p>Here is the JSON:</p>

<pre><code>{
    "transforms": {
        "variable_name1": [{
            "min": 100,
            "max": 200,
            "value": 0.6
        }],
        "variable_name2": [{
            "min": 100,
            "max": 200,
            "value": 0.6
        }],
        "variable_name3": [{
            "min": 100,
            "max": 200,
            "value": 0.6
        }]
    }
}
</code></pre>

<p>And the Transforms class:</p>

<pre><code>public class Transformer {
    Map&lt;String, List&lt;Transform&gt;&gt; transforms;

    public Transformer() {
        transforms = new HashMap&lt;String, List&lt;Transform&gt;&gt;();
    }

    public void setTransforms(Map&lt;String, List&lt;Transform&gt;&gt; transforms) {
        this.transforms = transforms;
    }
}
</code></pre>

<p>How I am using the ObjectMapper:</p>

<pre><code>try(Reader reader = new InputStreamReader(TransformTester.class.getResourceAsStream("transforms.json"), "UTF-8")) {
            ObjectMapper objMapper = new ObjectMapper();
            Transformer tr = objMapper.readValue(reader, Transformer.class);
}
</code></pre>