This should work:
Get-Content -Path 'file.txt' -raw | ConvertFrom-Json
It assumes that the content in file.txt is valid JSON format.
This should work:
Get-Content -Path 'file.txt' -raw | ConvertFrom-Json
It assumes that the content in file.txt is valid JSON format.