Copy data between each other by keys

Hi @abubakar

You can recursively copy the root level’s attributes object into all the objects of wProductVariantions array as match_attributes. Then you can use the below JMESPath to filter out all objects that do not match the attributes object copied inside each wProductVariants objects.

&{wProductVariations[?attributes == match_attributes]}

Please give it a try and let us know if you have any questions.

1 Like