title: how to send the data in request body as json to resttemplate.exchange
body: <p>Assume I am getting the values from one API, need to send that data to other API through <code>resttemplate.exchange</code></p>
  <p>I am iterating the values like below</p>
  <pre><code>String Data=&quot;&quot;;
  for(String value: receivedvalues){
  Data=Data.concat(&quot;,&quot;+val)
  }
  
  List&lt;map&gt; result=resttemplate.exchange(url+Data,HttpMethod.GET,ArrayList.class).getBody);
  </code></pre>
  <p>The above problem is I'm adding data to request url, but i need to send through the request body but in this case how we can send data through the resttemplate.exchange.Can any one have any idea on this.
  Thanks in advance.</p>