title: Jackson databind JSON boolean conversion
body: <p>I'm using Jackson objectMapper to convert a JSON to an object and do some transformations and converting it back to JSON.</p>
  
  <p>The JSON is like<code> { "id":"abc1243", "val":1, "isDel":true}</code></p>
  
  <p>In the above val is int and isDel is boolean.</p>
  
  <p>My object is defined as below</p>
  
  <pre><code>public class MyObj{
    private String id;
    private String val;
    private String isDel;
     //getters and setters
  
  }
  </code></pre>
  
  <p>When I convert the JSON to the MyObj, the String id and Int val are bound into the String but the boolean is not binded and hence I get null.</p>
  
  <p>Im using the below approach</p>
  
  <pre><code>   ObjectMapper mapper = new ObjectMapper();
      mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
      mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
      try {
          MyObj myObj = mapper.readValue(new File("/Users/sample.json"), MyObj.class);
  }
  </code></pre>
  
  <p>May I know why the boolean is not binded to the String member.</p>