转换中的JSON中的IF条件? [英] IF condition in JSON under transformation?
本文介绍了转换中的JSON中的IF条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法我们只能申请JUST条件。
我问的原因是因为在其他条件下我们发送的是另一方不接受的默认值?
我尝试过:
州:#ifcondition(# valueof($。state),New,1,
#ifcondition(#valueof($。state),Other,#valueof($。state),'')),
如果我的条件是假的或者说状态不是新的那么我们不需要发送状态值?
解决方案
.state),New,1,
#ifcondition(#valueof(
.state),Other,#valueof(
.state),'')),
如果我的条件是假的或者说状态不是新的那么我们不需要发送状态值?
Is there a way we can only apply if condition in JUST.
The reason i am asking is because in else condition we are sending the default value which other side is not accepting?
What I have tried:
"state": "#ifcondition(#valueof($.state),New,1,
#ifcondition(#valueof($.state),Other,#valueof($.state),''))",
If my condition is false or lets say state is not new then we dont need to send the state value?
解决方案
.state),New,1,
#ifcondition(#valueof(
.state),Other,#valueof(
.state),''))",
If my condition is false or lets say state is not new then we dont need to send the state value?
这篇关于转换中的JSON中的IF条件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文