
jeqpb (jeqpb) asked a question.
Hi all!
I'm trying to merge two objects. They are as below:
- 1st object
{"profile":{"employeeStatus":"Cadre-Regular"}}
- 2nd object
{"profile":{"login":"john.doe@g-ushin.com","email":"john.doe@g-ushin.com"}}
When I'm using the "Merge" function, the result is:
{"profile":{"employeeStatus":"Cadre-Regular"}}
I believe that this is because "profile" is in both object.
Is there a way to merge the two objects without Okta considering the "profile" key as a duplicate, and therefore deleting it?
Thanks,

Hello @jeqpb (jeqpb) Thank you for reacting out to our Community!
Only way I can see is using 2 separate get objects at the path profile. This gives two separate objects. Then use merge on the two new objects and an object construct with the key profile.
Please see screenshot attached:
Community members help others by clicking Like or Select as Best on responses. Try it today.