Quantcast
Viewing all articles
Browse latest Browse all 4

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

If you have a need to use Invoke-WebRequest over Invoke-RestMethod you can convert it to an object by turning it into a string first

$response = Invoke-WebRequest -Uri "https://yadayada:8080/bla"$jsonObj = ConvertFrom-Json $([String]::new($response.Content))

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>