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

PHOTO EMBED

Mon Aug 17 2020 21:56:14 GMT+0000 (Coordinated Universal Time)

Saved by @Ohad #powershell

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

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