title: No content to map due to end-of-input jackson parser
body: <p>I am getting this response from the server <code>{"status":"true","msg":"success"}</code></p>
  
  <p>I am trying to parse this json string using Jackson parser library but somehow I am facing mapping-exception stating </p>
  
  <pre><code>com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
   at [Source: java.io.StringReader@421ea4c0; line: 1, column: 1]
  </code></pre>
  
  <p>Why do we get this kind of exceptions?</p>
  
  <p>How to understand what is causing this exception?</p>
  
  <p>I am trying to parse using following way:</p>
  
  <pre><code>StatusResponses loginValidator = null;
  
  ObjectMapper objectMapper = new ObjectMapper();
  objectMapper.configure(Feature.AUTO_CLOSE_SOURCE, true);
  
  try {
      String res = result.getResponseAsString();//{"status":"true","msg":"success"}
      loginValidator = objectMapper.readValue(result.getResponseAsString(), StatusResponses.class);
  } catch (Exception e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p><strong>StatusResponse class</strong></p>
  
  <pre><code>@JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({ "status","msg" })
  public class StatusResponses {
  
      @JsonProperty("status")
      public String getStatus() {
          return status;
      }
  
      @JsonProperty("status")
      public void setStatus(String status) {
          this.status = status;
      }
  
      @JsonProperty("msg")
      public String getMessage() {
          return message;
      }
  
      @JsonProperty("msg")
      public void setMessage(String message) {
          this.message = message;
      }
  
      @JsonProperty("status")
      private String status;
  
      @JsonProperty("msg")
      private String message;
  
      private Map&lt;String, Object&gt; additionalProperties = new HashMap&lt;String, Object&gt;();
  
      @JsonGetter
      public Map&lt;String, Object&gt; getAdditionalProperties() {
          return additionalProperties;
      }
  
      @JsonSetter
      public void setAdditionalProperties(Map&lt;String, Object&gt; additionalProperties) {
          this.additionalProperties = additionalProperties;
      }
  }
  </code></pre>