title: Send and parse the JSON to spring controller?
body: <p>Suppose , If I have the <code>JSON</code> data like ,</p>
  
  <pre><code>var json = {"name":"kite Player","age":"25","hobby":"footbal"}
  </code></pre>
  
  <p>I can Send the <code>JSON</code> data by </p>
  
  <pre><code>var jsonData = JSON.Stringfy(json);
  </code></pre>
  
  <p>In <code>JQueryAjax</code> ,</p>
  
  <pre><code>data = jsonData ,
  </code></pre>
  
  <p>I can parse the JSON data in the spring controller by,</p>
  
  <pre><code>public class TestController {
      @RequestMapping(method = RequestMethod.POST, value = "personDetails.html")
      public @ResponseBody Result math(@RequestBody final Persons persons) {
  
           String name = person.getName();
           String age = persons.getAge();
           String hobby = persons.getHobby();
           // Other process
      }
  }
  </code></pre>
  
  <p>How can I parse the <code>JSON</code> in the <code>Spring controller</code>, If I need to send multiple person details in <code>JSON</code> like ,</p>
  
  <pre><code>var json = [ {"name":"kite Player","age":"25","hobby":"footbal"},  
               {"name":"Steve","age":"40","hobby":"fishing"},
               {"name":"Marker","age":"28","hobby":"cricket"}
             ]
  </code></pre>
  
  <p>Hope our stack members will give a good solution.</p>