title: Send a json with a multiline string instead of \n
body: <p>I have a string with \n as a join result:</p>
  
  <pre><code>my_var = ['name','phone','age'].join("\n")
  </code></pre>
  
  <p>I will send this string in the body of a post as a Json: </p>
  
  <pre><code>def body
    { "str": my_var }
  end
  </code></pre>
  
  <p>I want to send the var in multiple lines instead of sending the \n like this:</p>
  
  <pre><code>"name\nphone\nage"
  </code></pre>
  
  <p>EDIT: 
  I am sending this string joined with \n to another dev team as a json in the body of my post request to their uri. But they don't want to receive a string with \n and replace or translate there. They want to recieve in multiple lines.</p>