#Retrieve and Manipulate data with an API

1 messages · Page 1 of 1 (latest)

graceful birch
#

Hi, I am currently using Powershell for a project and I have some issues.
In my case, I need to retrieve some datas with a get request, then modify some parameters then send them back with a put request.
The problem is I don't know the right way to convert the json i receive to make it viable for the body I will send back, I tried using ConvertFrom-Json but all the keys with the value format @{} or with "" went blank and made error.

Do you have an idea on how I should procede?
If I am not clear in my explanation feel free to ask for more information

wanton whale
#

can you show an example of what you mean

maiden ingot
#

Yeah, sample code that reproduces the issue would be helpful - but it most of all sounds like you maybe forgot to convert to payload back to JSON again after making your changes?