I'm returning key-value fields from the database, how do merge the two values into a new key-value pair?
{
"conditions": [{
"key": "target_condition",
"value": "100"
},
{
"key": "target_count_or_value",
"value": "value"
}
]
}
How to:
{
"conditions": {
"target_condition": "110",
"target_count_or_value": "quantity" }
}