title: How to output the content of a nested JSON hash table to a PSO using PowerShell?
body: <p>How can I output the entire contents of a nested JSON hash table to a PSO in one line?</p>
  
  <pre><code>$json = @"
  {
      "outer": "value1",
      "outerArray": [
          "value2",
          "value3"
      ],
      "outerHash": {
          "inner": "value4",
          "innerArray": [
              "value5",
              "value6"
          ],
          "innerHash": {
              "innermost1": "value7",
              "innermost2": "value8",
              "innermost3": "value9"
          }
      }
  }
  "@
  </code></pre>
  
  <p>Current behavior: Only one “level” is displayed</p>
  
  <pre><code>$json | ConvertFrom-Json
  outer  outerArray       outerHash                                              
  -----  ----------       ---------                                              
  value1 {value2, value3} @{inner=value4; innerArray=System.Object[]; innerHash=}
  </code></pre>
  
  <p>Desired behavior: Recursively expand and display all hash/array content</p>
  
  <pre><code>$json | ConvertFrom-Json
  outer  outerArray       outerHash                                              
  -----  ----------       ---------                                              
  value1 {value2, value3} @{inner=value4; innerArray=@(value5, value6); innerHash=@{innermost1=value7; innermost2=value8; innermost3=value9}}
  </code></pre>
  
  <p>The following seemed to brush on the subject but did not achieve the desired effect:
  <a href="https://stackoverflow.com/questions/40495248/powershell-hashtable-from-json">PowerShell Hashtable from JSON</a>
  <a href="https://stackoverflow.com/questions/3740128/pscustomobject-to-hashtable/52656886#52656886">PSCustomObject to Hashtable</a>
  <a href="https://stackoverflow.com/questions/10935836/how-to-output-multiple-hash-tables-in-powershell">How to output multiple hash tables in Powershell</a></p>