dataWeave元素转换数组到字符串
任何人都可以根据输入数据(数组对象的项目)提供以下输出结构的数据启发逻辑。
输入数据
{
"Items": [{
"name": "Document",
"value": ["Representative", "Manager"]
}, {
"name": "Product",
"value": ["Sales", "Price"]
}]
}
输出数据:
^(+Document:"Representative" +Document:"Manager") ^(+Product:"Sales" +Product:"Price")
Can anyone kindly provide the DataWeave logic for the below output structure based on the input data(Items of the array object).
Input Data
{
"Items": [{
"name": "Document",
"value": ["Representative", "Manager"]
}, {
"name": "Product",
"value": ["Sales", "Price"]
}]
}
Output data:
^(+Document:"Representative" +Document:"Manager") ^(+Product:"Sales" +Product:"Price")
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决此问题的最佳方法是使用
MAP
功能和Joinby
的组合The best way to solve this is by using a combination of
map
function andjoinBy