I have a simple json that I am trying to get values from in Powershell
$webData = @'
{
"results": [
{
"facet": "266976",
"appid": "266976",
"count": 233206
},
{
"facet": "27096405",
"appid": "27096405",
"count": 85669
}
]
}
'@
$data1 = $webData | ConvertFrom-Json
Write-Output $data1.results.count
When I write output I get values count and not value itself like I do for appid and facet. Desired result: 233206 Current result: 2
I cannot change json. Is there a way for PS not to see it as a count operator? Thank you