Hello There,
I have the below GET response for a feature API request. I would like to update the values for the corresponding parameters as follows in the json object:
“paramValue”: 15
“configState”: “ENABLE”
GET Response output:
TASK [debug] *********************************************************************************************************************
ok: [localhost] => {
“msg”: {
“changed”: false,
“connection”: “close”,
“content_length”: “126”,
“content_type”: “application/json”,
“cookies”: {},
“date”: “Wed, 27 Feb 2019 01:47:59 GMT”,
“failed”: false,
“json”: {
“configClass”: “MASTER”,
“configState”: “DISABLE”,
“id”: “FEATURE-BIT”,
“instanceId”: 0,
“paramValue”: 0,
},
“msg”: “OK (126 bytes)”,
“redirected”: false,
“status”: 200,
}
}
I am not sure of the syntax, how to update the values/flags in the json object and send POST request using URI module. Please advice ?