How server-side get json from client?

How server-side get json from client?

I create a jsp file and use struts. In my jsp I use below code.
  1. $("#myForm").submit(function(){
  2.       $.post(
  3.             "./MyAction.do?cmd=updateDb",
  4.             { name:'panda', age:'23' },
  5.             function(text,state) { alert ("StatusCode:"+state ); },
  6.             "application/json"
  7.       );
  8.       return false
  9. });
When myForm is submit. jsp send json to server. I want to know what server-side should do to get the json.. I try this code but not work. It tell 'reader.readline() is null'

  1. public class myAction extends DispatchAction{
  2.       public ActionForward updateDb (ActionMapping mapping,
  3. ActionForm form,
  4. HttpServletRequest request,
  5. HttpServletResponse response) throws Exception {
  6.             String jsonString = readJSONStringFromRequestBody(request);
  7.      }
  8.       private String readJSONStringFromRequestBody(HttpServletRequest request) throws Exception{
  9.              StringBuffer json = new StringBuffer();
  10.       String line = null;
  11.       try{
  12.       BufferedReader reader = request.getReader();
  13.       while((line=reader.readLine()) != null ){
  14. json.append(line);
  15.       }
  16.       }catch(Exception e){
  17.       throw new Exception("Error Reading JSON string:"+e.toString());
  18.       }
  19.       return "";
  20.       }
  21. }
Anyone please help me. sorry for my english.