title: Modify a JSON file with PowerShell without writing BOM
body: <p>I need to modify an existing UTF8 encoded JSON file with PowerShell. I tried with the following code:</p>
  
  <pre><code>$fileContent = ConvertFrom-Json "$(Get-Content $filePath -Encoding UTF8)"
  $fileContent.someProperty = "someValue"
  $fileContent | ConvertTo-Json -Depth 999 | Out-File $filePath
  </code></pre>
  
  <p>This adds a BOM to the file and also encodes it in UTF16. Is it possible to have <code>ConvertFrom-Json</code> and <code>ConvertTo-Json</code> do not do the encoding / BOM?</p>