title: Running curl command with JSON content from a shell variable
body: <p>I have the script below...</p>
  
  <p>And I cannot seem to get the variables to work</p>
  
  <pre><code>#!/bin/bash
  
  info = 'Help...?'    
  object='{"attachments": [{"title": "ti1","text": $info }]}'    
  curl -X POST -H 'Content-type: application/json' --data '$object' https://hooks.slack.com/services/xxxx
  
  exit 0
  </code></pre>
  
  <p>Even <code>--data '$object'</code> doesn't work without <code>$info</code>...as Slack API couldn't read my request.</p>
  
  <p>How do I fix this?</p>