I have two Arrays of Objects:
{
"records": [
{
"lead_id": 97195,
"user_id": 613,
"segment_id": 0,
"email_address": "[email protected]",
"full_name": "asdf asdf",
},
{
"lead_id": 97197,
"user_id": 613,
"segment_id": 0,
"email_address": "[email protected]",
"full_name": "asdf asdf",
}
]
}
And the second array of objects:
{
"userTags": [
{
"lead_id": 97195,
"user_tag_id": 93,
"tag_name": "Julien",
},
{
"lead_id": 97195,
"user_tag_id": 93,
"tag_name": "test123"
},
{
"lead_id": 97197,
"user_tag_id": 93,
"tag_name": "General Business"
},
{
"lead_id": 97197,
"user_tag_id": 93,
"tag_name": "PAREB CLRB"
}
]
}
I want to insert the tagname on specific lead_id object, for example in records there's "lead_id" : 97195 and the userTags "lead_id" : 97195, that's my catcher or hint that should be connected on that Array of objects but I dont have any idea how can I insert the tag_name object in the records list
example output
"records": [
{
"lead_id": 97195,
"user_id": 613,
"segment_id": 0,
"email_address": "[email protected]",
"full_name": "asdf asdf",.
"tag_name": "Julien",
}]