- CJ Lai
- PowerBuilder
- Thursday, 30 June 2022 03:49 PM UTC
Hi
I need your help or advice.
Below is a sample JSON that is returned from a HttpClient GET call. (It'll be easier to view if you copy/paste to a JSON editor.)
{
"loanType": "NewLead",
"loan": {
"id": 7,
"loanType": "NewLead",
"ucid": 1,
"branchId": "1281",
"loanStatus": "Funded",
"amountPaidToCustomer": 44,
"jointType": "COSIGN"
}
},
{
"loanType": "FormerBorrower",
"loan": {
"id": 8,
"loanType": "FormerBorrower",
"ucid": 1,
"branchId": "1281",
"loanStatus": "Viewed",
"amountPaidToCustomer": 33,
"jointType": "INDVDUAL"
}
},
{
"loanType": "Renewal",
"loan": {
"loanId": 1,
"previousLoanPayOffAmount": 1285.5,
"previousAccountID": 1234,
"accountOption": null,
"id": 0,
"loanType": "Renewal",
"ucid": 1,
"branchId": "1281",
"loanStatus": "Pending",
"amountPaidToCustomer": 1250,
"jointType": "JOINT"
}
}
How do I load those data fields into a dwo only when the LoanType = 'Renewal'?
I have looked those answers and examples online but the JsonParser.GetITemArray always returned -1...
Appreciate your help!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.