title: convert json to pojo using jquery/spring/jackson
body: <pre><code>$.ajax({
    cache:false,
    type: 'POST',
    url: "${saveDTO}",
    data: mySubmitData, //a stringified json object, a form converted using toObject plugin
    contentType: "application/json",
    success:  function(data) {            
      savedDialog.html( JSON.stringify(data) + "&lt;br&gt;&lt;br&gt;"+mySubmitData);
    }
  });
  </code></pre>
  
  <p>and the controller is :</p>
  
  <pre><code>public @ResponseBody MyDTO saveDTO(@Valid final MyDTO myDTO,BindingResult result, Model model){
   System.out.println(myDTO.getMyField + "  " + myDTO.getSecondField;
   return new MyDTO();
  }
  </code></pre>
  
  <p>The output I get in dialog shows this :</p>
  
  <pre><code>{"myField":null,"secondField":null} //new empty dto converted and returned spring
  
  {"myField":"RU","secondField":"13-02-12"} //submitted data, a form converted to json
  </code></pre>
  
  <p>Whilst my sys out console output shows both fields are null, the json has not bound !!! Why ? The DTO itself just has two private fields with appropriate getters/setters</p>