I'm getting the following response through an API and I'm trying to pull data out of the JSON response. I'm interested in only pulling the clone.href when clone.name = ssh.
response: {
"links": {
"clone": [
"@{href=ssh://sampleurl.com; name=ssh}",
"@{href=https://sampleurl.com; name=http}"
],
"self": [
"@{href=https://sampleurl.com}"
]
}
}
I'm using the following to call the API:
Invoke-RestMethod -Uri $uri -Headers $Header -Method POST -Body $Body|ConvertTo-Json
ConvertTo-Json -Depth 30and see if the Json looks like the one you have posted here