[英]How to convert list hashmap into Array using Dataweave
I have list as below 我有以下列表
[{customerId="123"},{customerId="456"},{customerId="786"}]
I want to convert above as Array like below 我想像下面这样转换为数组
[123,456,786]
Can you please help on how to achieve using dataweave 您能帮忙如何使用dataweave吗
Following code will return array 以下代码将返回数组
%dw 1.0
%output application/java
---
payload.customerId map $ as :number
Please refer dataweave-selectors for more details. 请参考dataweave-selectors以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.