The json payload look like this:
{
"clients": [
{
"scope": "scope1",
"claim": "scope1",
"id": ["123", "567"]
},
{
"scope": "scope2",
"claim": "claim2",
"id": ["321", "765"]
}
]
}
When try to get the json in pwsh variable, I'm not getting the id values and it just displays System.Object[]
.
> $inputjson = (((get-content .\inputfile.json) -Join " " ) | convertfrom-json )
> echo $inputjson
clients
-------
{@{scope=scope1; claim=scope1; id=System.Object[]}, @{scope=scope2; claim=claim2; id=System.Object[]}}
Any help on how to get these array with array values?