Hello,
I have a response like this:
{
"documents": [
{
"id": 1,
"name": "document1"
},
{
"id": 3,
"name": "document3"
},
{
"id": 2,
"name": "document2"
},
...
]
}
The order of objects in “documents” can be different for any new request.
So, I need to do something like:
if “name” = “document3” then set variable “documentId3” = “3”,
if “name” = “document1” then set variable “documentId1” = “1”
and etc. for each document from the response.
Finally I need to see in variables:
documentId1 = id of the document with name “document1”
documentId2 = id of the document with name “document2”
and so on.
How can I do it?