troubleshooting Question

JSON string to array

Avatar of tonelm54
tonelm54 asked on
PowershellJSON
3 Comments1 Solution28 ViewsLast Modified:
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

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?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros