title: How do I use the DataContractJsonSerializer Class properly with powershell?
body: <p>I'm trying to take a json string in powershell 2.0 and convert it into a powershell object.</p>
  
  <pre><code>$json = '{"test":"data","numerical":4,"nested":{"nested":true}}'
  $ms = New-object IO.MemoryStream (,$utf8.GetBytes($json))
  [type] $type = 'psobject'
  $js = New-Object System.Runtime.Serialization.Json.DataContractJsonSerializer $type
  write-host $js.ReadObject($ms)
  </code></pre>
  
  <p>This produces nothing, no errors or output. How can I debug this further?</p>