title: PowerShell: ConvertTo-Json problem containing special characters
body: <p>I am writing a script to make changes to a JSON file but when the file is converted back to JSON it expands special characters.</p>
  
  <p>For example the JSON File contain passwords with "&amp;". A quick way to replicate the problem is using following command:</p>
  
  <p>PS> "Password&amp;123" | Convertto-Json
  output is:"Password\u0026123"</p>
  
  <pre><code>##Here is how I import the JSON FILE:
  $jsonfile = (Get-Content .\example.json -Encoding Ascii) -join "`n" | ConvertFrom-Json
  ##Exporting JSON FILE without modifying it.
  $jsonfile  | ConvertTo-Json |Out-File "new.json"
  </code></pre>
  
  <p>--here is an example of simplified JSON FILE</p>
  
  <pre><code>{
      "Server1":
      {
          "username":"root",
          "password":"Password&amp;dfdf"
      },
      "Server2":
      {
          "username":"admin",
          "password":"Password&amp;1234"
      }
  }
  </code></pre>