Hi Team,
can someone help me here
verify the first Json response Objects length are same with Second Json response Objects length
First Json Response
{
"name": "i_idw_tpi_port_tran_qtrly",
"elements": [
{
"transactionid": "20124099"
},
{
"transactionid": "20077005"
},
{
"transactionid": "20128098"
},
{
"transactionid": "20124173"
},
{
etc… it have 50000
Second Json Response
{
"name": "dv_source_data_marty_managed_accounts_fact_transaction",
"elements": [
{
"trade_date": "2020-11-30",
"links": [
{
"rel": "self",
"href": "https://ldw-dev.dev.schwab.com:9443/denodo-restfulws/sams_ldw_managed_accounts/views/dv_source_data_marty_managed_accounts_fact_transaction/18847499"
}
]
},
{
"trade_date": "2020-11-30",
"links": [
{
"rel": "self",
"href": "https://ldw-dev.dev.schwab.com:9443/denodo-restfulws/sams_ldw_managed_accounts/views/dv_source_data_marty_managed_accounts_fact_transaction/18847500"
}
]
},
{
"trade_date": "2020-11-30",
"links": [
{
"rel": "self",
"href": "https://ldw-dev.dev.schwab.com:9443/denodo-restfulws/sams_ldw_managed_accounts/views/dv_source_data_marty_managed_accounts_fact_transaction/18847502"
}
]
},
{
"trade_date": "2020-11-30",
"links": [
{
"rel": "self",
"href": "https://ldw-dev.dev.schwab.com:9443/denodo-restfulws/sams_ldw_managed_accounts/views/dv_source_data_marty_managed_accounts_fact_transaction/18847504"
}
]
},
{
"trade_date": "2020-11-30",
"links": [
{
"rel": "self",
"href": "https://ldw-dev.dev.schwab.com:9443/denodo-restfulws/sams_ldw_managed_accounts/views/dv_source_data_marty_managed_accounts_fact_transaction/18847506"
}
]
},
{
etc…it have 50000
from the first response Array is elements having 50000 objects name transactionid
from the Second response Array is elements having 50000 objects name trade_date
we have to store the length of the first Array in variable and verify the length with second Array