title: How to round-trip this JSON to PSObject and back in Powershell
body: <p>Powershell can't seem to correctly round-trip this JSON object:</p>
  
  <pre><code>{
      "settings": {
          "minimumApproverCount": 2,
          "creatorVoteCounts": false,
          "scope": [
              {
                  "refName": "refs/heads/d14rel",
                  "matchKind": "Exact",
                  "repositoryId": "a290117c-5a8a-40f7-bc2c-f14dbe3acf6d"
              }
          ]
      }
  }
  </code></pre>
  
  <p>Assuming <code>$json</code> is a string, this command:</p>
  
  <pre><code>$json | ConvertFrom-Json | ConvertTo-Json
  </code></pre>
  
  <p>produces the wrong JSON out of it:</p>
  
  <pre><code>{
      "settings":  {
                       "minimumApproverCount":  2,
                       "creatorVoteCounts":  false,
                       "scope":  [
                                     "@{refName=refs/heads/d14rel; matchKind=Exact; repositoryId=a290117c-5a8a-40f7-bc2c-f14db
  e3acf6d}"
                                 ]
                   }
  }
  </code></pre>
  
  <p>Notice it gets the "scope" variable wrong. Is there a way to fix this?</p>