Suppose the below is my response body
body={
"message": {
"Code": 26181,
"rollnos": [
{
"ID": 1439173,
"date_input": "2022-01-31 14:09:30.206748",
}
],
"start_date": "2022-01-31 00:00:00",
}
}
I want to set the ID value in a variable. I have tried the below but it did not work out.
${json_response}= set variable ${xyz.json()}
${temp}= Set Variable ${json_response['message']}
${value_1}= Set Variable ${temp['rollnos']}
${register_id} = Set Variable ${value_1["ID"]
Where have I gone wrong in this?