title: How to replace string in json file which have a variable using powershell
body: <p>I have a json as below. Want to replace '$content' in the json with 'test/abc'</p>
  
  <pre><code>{
  "$version": "0.0.1",
  "description": "",
  "content": {
      "url": "$content",
      "tag": {
          "version": "0.0.1",
  
      },
      "buildOptions": []
  },
  "env": "qa"}
  </code></pre>
  
  <p>I tried by converting it to JSON object but since there is a variable in that in gives me "ConvertFrom-Json : Invalid JSON primitive" error. </p>
  
  <pre><code> $JsonData = Get-Content module.json -raw | ConvertFrom-Json
  </code></pre>
  
  <p>How can I replace $content with test/abc? </p>