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

Answer by Frode F. for How to parse JSON from the Invoke-WebRequest in PowerShell?

$
0
0

You could replace Invoke-WebRequest with Invoke-RestMethod which auto-converts json response to a psobject so you can use:

$response = Invoke-RestMethod -Uri "https://yadayada:8080/bla"$response.flag 

Viewing all articles
Browse latest Browse all 4

Trending Articles



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