title: How do I create a JSON in PowerShell?
body: <p>How do I create a Json in PowerShell?<br />
  I assumed it would be similar to creating Xmls in PowerShell but it doesn't work:</p>
  <pre><code>[Json]$MyJsonVariable = @&quot;
  {
    &quot;MyList&quot;{
      &quot;Item1&quot; {
        &quot;Name&quot;: &quot;AMD Ryzen 5 3600x&quot;
        &quot;Type&quot;:&quot;CPU&quot;
        &quot;Price&quot;:&quot;`$69.99&quot;
        &quot;Where&quot;:&quot;Amazon.com&quot;
      }
    }
  }
  &quot;@
  </code></pre>
  <p>But it didn't work:</p>
  <pre><code>Unable to find type [Json].
  At line:1 char:1
  + [Json]$MyJsonVariable = @&quot;
  + ~~~~~~
      + CategoryInfo          : InvalidOperation: (Json:TypeName) [], RuntimeException
      + FullyQualifiedErrorId : TypeNotFound
  </code></pre>
  <p>Help Please</p>