title: JSON Post request for boolean field sends false by default
body: <p>Hi I am sending a JSON Post request using the FireFox RestClient. </p>
  
  <p>My JSON Request is as below: </p>
  
  <pre><code> { "firstName": "Test", "lastName": "1", "isActive": 1 }
  </code></pre>
  
  <p>My POJO has isActive field as below </p>
  
  <pre><code>  private boolean isActive;
  </code></pre>
  
  <p>My Controller is define as below </p>
  
  <pre><code>@RequestMapping(method = {RequestMethod.POST, 
                                   RequestMethod.PUT}, value = "/save")
  public ResponseEntity&lt;RestResponse&gt; save(
        @RequestBody POJOUserDetails userDetails, WebRequest request){
  </code></pre>
  
  <p>In my POJO, when I check the value of isActive, it is false no matter what I send. 
  I tried below value in my JSON request</p>
  
  <pre><code>"isActive": 1
  "isActive": true 
  "isActive": "true"
  "isActive": ""
  "isActive": null
  "isActive": false
  </code></pre>
  
  <p>All of above sends false in my controller. Please help. Thanks</p>
  
  <p>Adding POJO details </p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true)
  @JsonSerialize(include=Inclusion.NON_EMPTY)
  public class POJOUserDetails {
  private String firstName;
  private String lastName;
  private boolean isActive;
  
  public boolean isActive() {
      return isActive;
  }
  public void setActive(boolean isActive) {
      this.isActive = isActive;       
  }
  
      public String getFirstName() {
      return firstName;
  }
  public void setFirstName(String firstName) {
      this.firstName = firstName;
  }
  public String getLastName() {
      return lastName;
  }
  public void setLastName(String lastName) {
      this.lastName = lastName;
  }   
  }
  </code></pre>