Trying to send an api request and iterate trough the response but it seems my response isnt getting deserialize to objects .
This is the response im getting after invoke-Webrequest :
{"isSuccess": true, "value": null, "error": 0, "error2": ""}
Instead of:
Value error error2 IsSuccess
----- ---- ------- ---------
Here is the invoke im using :
$json = Invoke-WebRequest $RequestAPI-Method Post -Body $RequestBody -
ContentType 'application/json' | ConvertFrom-Json
Didnt post the API/Body as they are internal. Is this an issue with PowerShell? or am I getting a wrong type response? Im kind of confused.
If more info needed let me know and i'll try to add.