我有一个数据库连接返回看起来像这样的东西(在 Object-to-JSON Transformer 之后:
C:\curl>curl -H "Content-Type: application/json" -d @input3.txt http://localhost
:8081/mule/getNum
[{"F1":111},{"F1":222},{"F1":444}]
请注意 JSON 语句包含在 JSON 数组中。
鉴于上述结构,如何将数组第二列中的所有数字字段相加?除了来自数据库的 SEELCT SUM() 之外,我将使用哪个节点。
谢谢