title: ConvertFrom-JSON to object
body: <p>It looks like the way I am expecting this to work doesn't. I want multiple objects returned, but it seems to be returning just one. It is beyond me how I do it.</p>
  
  <p>A very simple JSON file:</p>
  
  <pre><code>{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
      "storageAccountName": {
        "value": "sa01"
      },
      "virtualNetworkName": {
        "value": "nvn01"
      }
    }
  }
  </code></pre>
  
  <p>I want to dynamically add the parameters and their values into a nice pscustomobject (that would look like the following with the above data):</p>
  
  <pre><code>ParameterName      | Value
  ===========================
  storageAccountName | sa01
  virtualNetworkName | nvn01
  </code></pre>
  
  <p>What I don't understand is why the following returns one object:</p>
  
  <pre><code>$TemplateParametersFile = "C:\Temp\deploy-Project-Platform.parameters.json"
  $content = Get-Content $TemplateParametersFile -Raw
  
  $JsonParameters = ConvertFrom-Json -InputObject $content
  $JsonParameters.parameters | Measure-Object
  </code></pre>
  
  <p>Whilst writing this, I eventually found a solution that get's what I want, which I'll post in the answer section. Feel free to school me and improve...  </p>