title: pretty print JSON response to the console from powershell v2?
body: <p>Basic sort of <a href="https://stackoverflow.com/q/49559386/262852">get</a> request:</p>
  
  <pre><code>thufir &gt;
  thufir &gt;
  thufir &gt; $PSVersionTable
  
  Name                           Value
  ----                           -----
  CLRVersion                     2.0.50727.8762
  BuildVersion                   6.1.7601.17514
  PSVersion                      2.0
  WSManStackVersion              2.0
  PSCompatibleVersions           {1.0, 2.0}
  SerializationVersion           1.1.0.1
  PSRemotingProtocolVersion      2.1
  
  
  thufir &gt;
  thufir &gt; type .\foo.ps1
  
  "start"
  
  $request = [System.Net.WebRequest]::Create("http://ipinfo.io/json")
  $request.Method = "GET"
  [System.Net.WebResponse]$response = $request.GetResponse()
  
  $response
  
  "done"
  
  thufir &gt;
  thufir &gt; .\foo.ps1
  start
  
  
  IsMutuallyAuthenticated : False
  Cookies                 : {}
  Headers                 : {Vary, x-cloud-trace-context, Access-Control-Allow-Or
                            igin, X-Content-Type-Options...}
  ContentLength           : 173
  ContentEncoding         :
  ContentType             : application/json; charset=utf-8
  CharacterSet            : utf-8
  Server                  :
  LastModified            : 29/03/2018 7:54:31 AM
  StatusCode              : OK
  StatusDescription       : OK
  ProtocolVersion         : 1.1
  ResponseUri             : http://ipinfo.io/json
  Method                  : GET
  IsFromCache             : False
  
  done
  
  
  thufir &gt;
  thufir &gt;
  </code></pre>
  
  <p>how do I output raw JSON?  Or formatted?</p>