title: How to send JSON as a parameter in url using Spring RestTemplate?
body: <p>I am trying to achieve same thing as this: <a href="https://stackoverflow.com/questions/36423202/how-to-use-query-parameter-represented-as-json-with-spring-resttemplate">How to use query parameter represented as JSON with Spring RestTemplate?</a>, sending JSON string as a URL parameter in <code>restTemplate.exchange()</code>. </p>
  
  <p>The accepted answer mentions that sending JSON object as request parameter is generally not a good idea since you will probably face problem with curly brackets inside JSON. That is exactly what is happening when I am trying to make a GET call to an API. Since this is an API from another system, I cannot ask them to change the format and will have to call the GET endpoint, passing JSON as parameter. How can I achieve this in <code>restTemplate.exchange()</code> call?</p>
  
  <p>Note: The mentioned related question does not guide on how to overcome this problem and I do not have enough reputation to comment on it to ask the author of the answer.</p>