title: JQgrid jqGrid('getGridParam','data') - How do I return the back to controller with JSON mapped to object?
body: <p>jqGrid('getGridParam','data')</p>
  
  <p>provides a javascript array with (index,person json)..</p>
  
  <pre><code>result= $('#grid').jqGrid('getGridParam','data');
  $.ajax({
                                  type: "POST",
                                  url : "savePerson",
                                  data:  JSON.stringify({list:result}),
                                  dataType: 'json',
                                  headers:{
                                      'Accept': 'application/json',
                                      'Content-Type':'application/json'
                                  },
                                  contentType: "application/json; charset=utf-8",
                                  success: function(response){
                                      console.log(response);
                                  },
                                  error: function(jaqXHR, textStatus, errorThrow){
                                      console.log(jqXHR + " : " + textStatus + " : " + errorThrown);
                                  },
                                  fail: function(jaqXHR, textStatus, errorThrow){
                                      console.log(jqXHR + " : " + textStatus + " : " + errorThrown);
                                  }
                              });
                          });
  </code></pre>
  
  <p>how do i pass this back to the controller?</p>
  
  <pre><code>@RequestMapping(value = "/savePerson", method = RequestMethod.POST)
      public @ResponseBody
      String savePerson(Model model,
              @RequestBody Map&lt;String, Person&gt; list)
  </code></pre>
  
  <p>for some reason</p>
  
  <p>it keep return a map with key="list" and JSON of persons</p>