如何使用Dataweave
问题描述:
列表的HashMap转换成数组我有名单如下如何使用Dataweave
[{customerId="123"},{customerId="456"},{customerId="786"}]
我想上面转换为数组像下面
[123,456,786]
能否请您就如何使用dataweave实现帮助
答
下面的代码将返回数组
%dw 1.0
%output application/java
---
payload.customerId map $ as :number
详情请参考dataweave-selectors。