title: Passing a shell variable to a JSON request to curl?
body: <p>Let's take the following example:</p>
  
  <pre><code>curl -i -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "Player.Open", "params":{"item":false}}' \
  http://example.com/jsonrpc
  </code></pre>
  
  <p>Now I want to have the boolean value of "item" be set in a shell script variable such as:</p>
  
  <pre><code> PRIVATE=false
   read -p "Is this a private? (y/[n]) " -n 1 -r
   if [[ $REPLY =~ ^[Yy]$ ]]; then
       PRIVATE=true
   fi
  </code></pre>
  
  <p>And I want to pass in the value of PRIVATE to item. I have tried every which way but no luck. Can anyone shed some light?</p>