title: Properly escaping Json command line option in bash script
body: <p>I have utility which accept JSON as argument. How to escape json correctly to pass to the utility?
  Example:</p>
  
  <pre><code>ip="127.0.0.1"
  action='{\"server_ip\":\"$ip\",\"action\":\"stop\"}'
  ./fix-utility -e $action
  </code></pre>
  
  <p>But JSON is not getting escaped correctly. </p>