Если условие с толчкомJAVA

Программисты JAVA общаются здесь
Anonymous
Если условие с толчком

Сообщение Anonymous »

Здесь ввод < /p>
{
"accounts": [
{
"title": "XXX",
"owner": {
"id": "627637",
"shortName": "bo name"
},
"type": "CA",
"productCode": "019",
"productSubCode": "XX",
"swiftCode": "123",
"iban": "123",
"bank": "STANDARD CHARTERED BANK",
"branch": "050",
"accountNumber": "19902867601BHD",
"currency": "BHD",
"openingDate": "2020-04-01",
"closingDate": "2020-12-01",
"accountStatus": "O",
"addressDetails": {
"line1": "XXX,XXXX,XXX,PO XXXX,ZIP XXX,XXX",
"line2": "/BAHRAIN"
}
}
]
}
< /code>
Когда data.account.account.identification и data.account.servicer.identification имеет значение ожидаемого вывода: < /p>
{
"Data": {
"Account": [
{
"AccountType": "Business",
"Account": [
{
"SchemeName": "BH.OBF.IBAN",
"Identification": "123",
"Name": "bo name"
}
],
"Servicer": {
"SchemeName": "BH.OBF.BICFI",
"Identification": "123",

},
"AccountId": "19902867601BHD",
"Status": "Enabled",
"Currency": "BHD",
"AccountSubType": "CurrentAccount",
"Nickname": "XXX",
"OpeningDate": "2020-04-01T00:00:00+03:00",
"MaturityDate": "2020-12-01T00:00:00+03:00"
}
]
}
}
< /code>
Когда data.account.account.identification и data.account.servicer.identification не имеет значения ожидаемого вывода: < /p>
{
"Data": {
"Account": [
{
"AccountType": "Business",
"Account": [
{
"Name": "bo name"
}
],
"Servicer": {
},
"AccountId": "19902867601BHD",
"Status": "Enabled",
"Currency": "BHD",
"AccountSubType": "CurrentAccount",
"Nickname": "XXX",
"OpeningDate": "2020-04-01T00:00:00+03:00",
"MaturityDate": "2020-12-01T00:00:00+03:00"
}
]
}
}
< /code>
< /code>
output according to the if condition
So what's should i modify my jason spec. pls help me !!!

Подробнее здесь: https://stackoverflow.com/questions/794 ... -with-jolt

Вернуться в «JAVA»