I've got issue on following script. I am using latest PowerShell 7
Code:
$databasesArray = @('Zero','One','Two','Three')
$databasesDev = $databasesArray | ConvertTo-Json -Compress
Write-Host @databasesDev
Result:
[ " Z e r o " , " O n e " , " T w o " , " T h r e e " ]
Expected:
["Zero", "One", "Two", "Three"]
How to fix it? What's wrong with the code?