Forum Discussion
alex_panganiban
7 years agoContributor
Hi, I finally got it! Played around more with my expression and finally got what I needed. Sharing my solution:
{ “@product-id” : jsonPath($, “$group[0][‘@product-id’]”), “variations” : { “variants” : $group.reduce((accum, curval) => accum.concat([curval[‘variants’]]), ) } }
Related Content
- 11 months ago
- 6 months ago
- 2 years ago
- 2 years ago