0 points

powershell - How to load a JSON file and convert it to an object of a specific type? - Stack Overflow


dashboard

Mon Aug 17 2020 21:56:14 GMT+0000 (UTC)

Posted by @Ohad #powershell

[PSCustomObject]$param = [PSCustomObject](Get-Content .\parameters.json | Out-String | ConvertFrom-Json)
content_copy Copy

Convert JSON to PSCusomtObject

https://stackoverflow.com/questions/35863103/how-to-load-a-json-file-and-convert-it-to-an-object-of-a-specific-type