String handling from Powershell script

This should work:

Get-Content -Path 'file.txt' -raw | ConvertFrom-Json

It assumes that the content in file.txt is valid JSON format.

Leave a Comment