title: Handling json post payload in java HttpServletRequest
body: <p>I have a problem with post'ing json object to my java HttpServletRequest.</p>
  
  <p>This is how looks my payload:
  <a href="https://i.stack.imgur.com/P6tfy.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>and my method doPost:</p>
  
  <pre><code>    public void doPost(HttpServletRequest request,
          HttpServletResponse response)   throws ServletException, IOException {  
      response.setContentType("application/json");
      response.setCharacterEncoding("utf-8");
      PrintWriter out = response.getWriter();
          out.print("\"nie poprawne dane "+request.getReader()+"\"");     }
  </code></pre>
  
  <p>but it just show sth like this:
  nie poprawne dane org.apache.catalina.connector.CoyoteReader@1a10174e</p>