Quantcast
Channel: How to parse JSON from the Invoke-WebRequest in PowerShell? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by jiboj for How to parse JSON from the Invoke-WebRequest in PowerShell?

$
0
0

This way:

$response = Invoke-WebRequest -Uri <your_uri>if ($response.statuscode -eq '200') {    $keyValue= ConvertFrom-Json $response.Content | Select-Object -expand "<your_key_name>"}

Viewing all articles
Browse latest Browse all 4

Trending Articles