Avatar of tonelm54
tonelm54

asked on 

JSON string to array

Im trying to convert a string which is json to an array.

My Json string is called $outVariable, and if I copy $outVariable to clipboard and put it into a json validator it says its valid.

However if I try and convert it via:-
$outVariable = ConvertFrom-Json -InputObject $outvariable

Open in new window


And then look at $outvariable it looks like its converted only the first dimension of the json, not any of the child elements.

Any ideas?
PowershellJSON

Avatar of undefined
Last Comment
oBdA

8/22/2022 - Mon