Merge Two JSON Object Lists on Key
1 min
Merges Items JSON Object Lists based on a definable matching key value in both of them. The Final List has the merge_list combined with matching items in the input list.
API Definition
Merge Two JSON Object List on Key API
Call the following API:
POST
https://orca.pathfix.com/functions/list/mergeonkey
{
"input": [{
"user_id": "[email protected]",
"name": "Mich"
},
{
"user_id": "[email protected]"
},
{
"user_id": "[email protected]"
}
],
"merge_list": [{
"user_id": "[email protected]",
"name": "Michelle"
},
{
"user_id": "[email protected]",
"name": "Sophie"
}
],
"input_key":"user_id"
"merge_key": "user_id",
"merge_prefix": "new_"
}