And if there’s duplicate fields, then you can do something like:
[string]$Content = Get-Content -Raw -Path $JsonFile $Content = $Content -replace ‘Guid’, ‘_Guid’ $PowershellObject = $Content | ConvertFrom-Json
And if there’s duplicate fields, then you can do something like:
[string]$Content = Get-Content -Raw -Path $JsonFile $Content = $Content -replace ‘Guid’, ‘_Guid’ $PowershellObject = $Content | ConvertFrom-Json