I have an JSON array conditions in reactj which has the data as below:
[{
"attribute": "SHIPPING_METHOD",
"condition": "EQUAL",
"favourableValue": "string",
"combinationType": "AND",
"combinationConditionType": "TRUE"
}]
But I need a name array like this
conditionModels: [{
"attribute": "SHIPPING_METHOD",
"condition": "EQUAL",
"favourableValue": "string",
"combinationType": "AND",
"combinationConditionType": "TRUE"
}]
How can I achieve this ? I have an API that has this structure with a name?