I wanna put all values after equal to (=
) sign separated by colon (:
) from below "passPercent" variable into a array using PowerShell script. Meaning array[0]=PROCESSING, array[1]=100, array[2]=75
and so on. How to do it?
$passPercent=PROCESSING:100.0:75:0:null:null:40:/#/app/projects/8a80808a69c899f10169c8a0d0610005/jobs/8a80808a69c899f10169c8a0da020079/runs/8a8080f169d28d430169d36a41090346:Bugs Logged = 0 Bugs Reopened = 0 Bugs Closed = 0 Total Bugs = 0
i did try this expression: $array = $passPercent | ConvertFrom-Json
but was showing this error ConvertFrom-Json : Invalid JSON primitive: PROCESSING
.