title: How to preserve line breaks when sending JSON using cURL?
body: <p>The following almost works, but line breaks in <code>message</code> property are not preserved.</p>
  <pre class="lang-sh prettyprint-override"><code>output=&quot;$(ls -la /home/john | gpg --armor --encrypt --recipient john@example.net)&quot;
  curl \
    --request POST \
    --url https://api.example.net/sendmail \
    --header 'Content-Type: application/json' \
    --data @- &lt;&lt; EOF
  {
    &quot;subject&quot;: &quot;Test&quot;,
    &quot;message&quot;: &quot;$output&quot;
  }
  EOF
  </code></pre>
  <p>Thanks for helping out!</p>