title: How to get value from json value in powershell
body: <p>I have a json file</p>
  
  <pre><code>{
  "value":  [
                {
                    "applicationVersion":  "@{major=14; minor=5; build=35970; revision=0; majorRevision=0; minorRevision=0}",
                    "ringName":  "PROD",
                    "ringFriendlyName":  "Production"
                },
                {
                    "applicationVersion":  "@{major=15; minor=0; build=35903; revision=0; majorRevision=0; minorRevision=0}",
                    "ringName":  "PREVIEW",
                    "ringFriendlyName":  "Preview"
                }
            ]
  }
  </code></pre>
  
  <p>I want to get major, minor, build and revision values from the ringName = Preview.</p>
  
  <p>I tried this</p>
  
  <pre><code>$supportedVersions = $myJson | ConvertFrom-Json
  $appVersion = $supportedVersions.value | where { $_.ringFriendlyName -eq "Preview" } | Select -ExpandProperty "applicationVersion" 
  </code></pre>
  
  <p>this returns me</p>
  
  <pre><code>@{major=15; minor=0; build=35903; revision=0; majorRevision=0; minorRevision=0}
  </code></pre>
  
  <p>but when I try </p>
  
  <pre><code>    $major = $appVersion | select major
  </code></pre>
  
  <p>it returns me nothing</p>
  
  <p><a href="https://i.stack.imgur.com/YVzeL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YVzeL.png" alt="enter image description here"></a></p>
  
  <p>Can anyone help?</p>