title: Replace JSON body in Curl request from stdin bash
body: <p>I am trying to fill one variable in the body of a curl request using input from stdin. </p>
  
  <p><code>echo 123 | curl -d "{\"query\": {\"match\": {\"number\": @- }}}" -XPOST url.com</code></p>
  
  <p>Unfortunately, the <code>@-</code> is not being replaced. I would like the body of the request to match the below </p>
  
  <pre><code>{
  "query": {
      "match": {
        "number": 123
      }
    }
  }
  </code></pre>
  
  <p>How can I replace the <code>query.match.number</code> value from the stdin?</p>