title: How to escape \r\n in the body of a POST in JMeter
body: <p>I have a JSON response as follows,</p>
  
  <p><code>{
      "name":"John Smith",
      "address": "#123\r\nRenault Road\r\n123456\r\n"
  }
  </code></p>
  
  <p>and I need to extract the address and put it into my next POST request. I use the JSON Extractor as a post processing element and with <code>$..address</code> I set the extracted address to the variable <code>address</code>.</p>
  
  <p>In my next request, I use the following as the POST data,</p>
  
  <p><code>{
      "id": "123456",
      "address": "${address}"
  }
  </code></p>
  
  <p>So when I make the request I see the POST data as,</p>
  
  <p><code>{
      "id": "123456",
      "address": "#123
  Renault Road
  123456
  "
  }
  </code></p>
  
  <p>This breaks at my backend and nevertheless this payload is not identified as a valid JSON as well.</p>
  
  <p>I want to make the request so that the POST data is as follow,</p>
  
  <p><code>{
      "id": "123456",
      "address": "#123\r\nRenault Road\r\n123456\r\n"
  }
  </code></p>
  
  <p>Any help to get this done is highly appreciated.</p>