Hi All,
I need to verify JSON response as below
- What is optimal way of verifying each of the key : value pair ?
- Also how do you maintain expected test data to verify against actual data ?
Thanks in advance.
{
"gridFactors": {
"leadId": "xxxx",
"netIncome": xxxx,
"downPayment": null,
"loanDuration": null
},
"grid": {
"state": "PO",
"expirationDate": null,
"offers": [
{
"duration": 12,
"recommendation": false,
"steps": [
{
"interestRateEffective": 3.99,
"interestRateNominal": 3.92,
"interestRate2of3Effective": 4.15,
"interestRate2of3Nominal": 4.07,
"maxAmount": 1099,
"recommendation": false,
"standardOffer": true
},
{
"interestRateEffective": 2.99,
"interestRateNominal": 2.95,
"interestRate2of3Effective": 3.59,
"interestRate2of3Nominal": 3.53,
"minAmount": 1100,
"maxAmount": 6000,
"recommendation": false,
"standardOffer": false
},
....
]
},
{
"duration": 24,
"recommendation": false,
"steps": [
{
"interestRateEffective": 3.99,
"interestRateNominal": 3.92,
"interestRate2of3Effective": 4.15,
"interestRate2of3Nominal": 4.07,
"maxAmount": 1099,
"recommendation": false,
"standardOffer": true
},
{
"interestRateEffective": 2.99,
"interestRateNominal": 2.95,
"interestRate2of3Effective": 3.59,
"interestRate2of3Nominal": 3.53,
"minAmount": 1100,
"maxAmount": 5100,
"recommendation": false,
"standardOffer": false
},
......