title: Unable to convert Json string to Map<String, Object>
body: <p>I am trying to convert my json into a map uisng jackson-core-2.9.6 . My json is</p>
  <pre><code> {
    &quot;name&quot;: &quot;Loren&quot;,
    &quot;inputDetails&quot;: {
    &quot;truncated&quot;: false,
     &quot;result&quot;: [
       {
      &quot;subjects&quot;: [
        {
          &quot;math&quot;: &quot;50&quot;,
          &quot;SST&quot;: &quot;37 &quot;,
          &quot;status&quot;: &quot;ACTIVE&quot;
        }
      ]
    }
  ]
  },
  &quot;timeoutInSeconds&quot;: null
  }
  </code></pre>
  <p>and the Java Code is by which I am trying to parse this JSON into Map is like this</p>
  <pre><code>public static void main(String[]args){
      
      String request=&quot;{\r\n  \&quot;name\&quot;: \&quot;Loren\&quot;,\r\n  \&quot;inputDetails\&quot;: {\r\n    \&quot;truncated\&quot;: false,\r\n    \&quot;result\&quot;: [\r\n      {\r\n        \&quot;subjects\&quot;: [\r\n          {\r\n            \&quot;math\&quot;: \&quot;50\&quot;,\r\n            \&quot;SST\&quot;: \&quot;37 \&quot;,\r\n            \&quot;status\&quot;: \&quot;ACTIVE\&quot;\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  },\r\n  \&quot;timeoutInSeconds\&quot;: null\r\n}&quot;;
      try {  
              List servicesResponse = null;
              Map&lt;String,Object&gt; inputParam=null;
              ObjectMapper objectMapper = new ObjectMapper();
              request =  objectMapper.writeValueAsString(request);
              objectMapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
              objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
              objectMapper.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
              inputParam = (Map&lt;String, Object&gt;) objectMapper.readValue(request, Map.class);
              servicesResponse = (List)inputParam.get(&quot;result&quot;);
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      
    }
  </code></pre>
  <p>Exception which I am getting is
  com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of <code>java.util.LinkedHashMap</code> (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('{
  &quot;name&quot;: &quot;Loren&quot;,
  &quot;inputDetails&quot;: {
  &quot;truncated&quot;: false,
  &quot;result&quot;: [
  {
  &quot;subjects&quot;: [
  {
  &quot;math&quot;: &quot;50&quot;,
  &quot;SST&quot;: &quot;37 &quot;,
  &quot;status&quot;: &quot;ACTIVE&quot;
  }
  ]
  }
  ]
  },
  &quot;timeoutInSeconds&quot;: null
  }')
  at [Source: (String)&quot;&quot;{\r\n  &quot;name&quot;: &quot;Loren&quot;,\r\n  &quot;inputDetails&quot;: {\r\n    &quot;truncated&quot;: false,\r\n    &quot;result&quot;: [\r\n      {\r\n        &quot;subjects&quot;: [\r\n          {\r\n            &quot;math&quot;: &quot;50&quot;,\r\n            &quot;SST&quot;: &quot;37 &quot;,\r\n            &quot;status&quot;: &quot;ACTIVE&quot;\r\n          }\r\n        ]\r\n      }\r\n    ]\r\n  },\r\n  &quot;timeoutInSeconds&quot;: null\r\n}&quot;&quot;; line: 1, column: 1]
  at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63)
  at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1342)
  at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1031)
  at com.fasterxml.jackson.databind.deser.ValueInstantiator._createFromStringFallbacks(ValueInstantiator.java:371)
  at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:323)
  at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:357)
  at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:29)
  at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4013)
  at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3004)
  at Test.main(Test.java:22)</p>
  <p>I have tried looking into similar questions available on Stakoverflow but unable to find json with similar structure which is having both string and objects.</p>