title: how to get the JSON data in Spring controller?
body: <p>I know it is a simple one . But couldn't find a solution.</p>
  
  <p>My jQuery-ajax will be ,</p>
  
  <pre><code>var json = {"message":"Message123","time":"time123","name":"test123"}
  
  data : JSON.stringify(json),
  </code></pre>
  
  <p>My Spring controller will be ,</p>
  
  <pre><code>@RequestMapping(value = "chat.html", method=RequestMethod.GET )
  public @ResponseBody String getChat() {
  
  System.out.println("Entered in to the controller ");
  
  String name == ???
  String msg == ???
  String time == ???
  
  //Process the functionality using the msg,name,time 
  
      return "Json String";
  }
  </code></pre>
  
  <p>How can I get the values of the name, message , time.</p>
  
  <p>Hope our stack members will help me.</p>