title: Powershell convertfrom -Json error after converting to base64
body: <p>I am trying to do the below in powershell and getting an error unable to figure out reason. </p>
  
  <p>Below works fine</p>
  
  <pre><code>$config = @"
  {
      "Common.BinDir": "G:\result",
      "Infrastructure.WebRoot": "G:\result20171120"
  }
  "@
  
  $abc = ConvertFrom-Json $testconfig
  </code></pre>
  
  <p>But when I pass in base64 of the above(as script which I use expects base64)</p>
  
  <pre><code>$config = "QCINCnsNCgkiQ29tbW9uLkJpbkRpciI6ICJHOlxyZXN1bHQiLA0KCSJJbmZyYXN0cnVjdHVyZS5XZWJSb290IjogIkc6XHJlc3VsdDIwMTcxMTIwIg0KfQ0KIkA="
  $decodedConfig = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($config))
  $abc = ConvertFrom-Json $decodedConfig
  </code></pre>
  
  <p>I get below error upon running the convert command</p>
  
  <pre><code>ConvertFrom-Json : Invalid JSON primitive: .
  At line:1 char:8
  + $abc = ConvertFrom-Json $decodedConfig
  +        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [ConvertFrom-Json], 
  ArgumentException
      + FullyQualifiedErrorId : 
  System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand
  </code></pre>