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.

Browse More Popular Posts

Leave a Comment