title: How can I modify JSON object sent in request body from UI side before reaching to spring controller?
body: <p>How can I modify JSON object sent in request body from UI side before reaching to spring controller?</p>
  
  <p>I tried adding filter , but as soon as I read from request(servletrequest.getReader()) and then forward request to next filter in filter chain it fails(Request doesnt reach to controller).</p>
  
  <pre><code>BufferedReader reader = servletrequest.getReader();
  String line;
  while ((line = reader.readLine()) != null) {
  buffer.append(line);
  String data = buffer.toString();
  </code></pre>
  
  <p>Using this I got JSON in string but I am not able to figure out how to put it back in request.</p>