I have a Powershell script that returns
I have a Powershell script that returns data that I convert to Json. However when I "Write-Host $results" all that appears in the results window is a single "]". Any thoughts?
6 Replies
so the way it works in powershell is that the result is the last log line
so i wouldn't be able to use the results to pass to another script in a flow?
it there a way to log this json without the line returns?
$compressedJson = $results | ConvertFrom-Json | ConvertTo-Json -Compress -Depth 100
does it for me and returns the whole part
thanks
If you can write to result.json, it will parse that instead