【发布时间】:2016-03-31 15:15:02
【问题描述】:
是否可以编写一个 mule 表达式来检查以下 json 请求中 Name 的所有值是否相同?
我正在尝试类似#[($ in message.payload.id.items if $.Name==$.Name)] 但它不起作用
请建议
{"id":
{
"items" : [
{
"Name": "Raj",
"transaction_tag": "value1",
"transaction_type": "withdraw"
},
{
"Name": "Raj",
"transaction_tag": "value2",
"transaction_type": "submit"
},
{
"Name": "Raj",
"transaction_tag": "value3",
"transaction_type": "inquiry"
}
]
}
}
【问题讨论】: