title: Create Hashtable from JSON
body: <p>I want to get a JSON representation of a Hashtable such as this:</p>
  
  <pre><code>@{Path="C:\temp"; Filter="*.js"}
  </code></pre>
  
  <p><code>ConvertTo-Json</code> results in:</p>
  
  <pre><code>{
      "Path":  "C:\\temp",
      "Filter":  "*.js"
  }
  </code></pre>
  
  <p>However, if you convert that JSON string back with <code>ConvertFrom-Json</code> you don't get a HashTable but a PSCustomObject.</p>
  
  <p>So how can one reliably serialize the above Hashmap?</p>