Hi nmrao,
Thanks for your response. Please find below
JSON Response
{
"customerId": "1234",
"yearMonth": "201703",
"transactions": [
{
"transactionId": "C111.158",
"transactionDate": 20170308,
"storeId": 1123,
"marketingName": "ABC Store",
"storeVisitToCity": "StoreCity",
"transactionChanel": "In-Store",
"transactionValue": 566,
"totalDiscount": -33
},
{
"transactionId": "C123.876",
"transactionDate": 20170330,
"storeId": 1111
"marketingName": "StoreName2",
"storeVisitToCity": "cityStore",
"transactionChanel": "In-Store",
"transactionValue": 117,
"totalDiscount": 0
}
]
}
--------------------------------------------------------
XML JDBC response
<Results>
<ResultSet fetchSize="10">
<Row rowNumber="1">
<TRANSACTION_ID>C111.158</TRANSACTION_ID>
<TRANSACTION_DATE_KEY>20170309</TRANSACTION_DATE_KEY>
<TRANSACTION_VALUE>566</TRANSACTION_VALUE>
<TOTAL_DISCOUNT>-33</TOTAL_DISCOUNT>
<STORE_ID>1123</STORE_ID>
<MARKETING_NAME>ABC Store</MARKETING_NAME>
<VISIT_TO_CITY>StoreCity</VISIT_TO_CITY>
<TRANSACTION_CHANNEL_DESC>In-Store</TRANSACTION_CHANNEL_DESC>
</Row>
<Row rowNumber="2">
<TRANSACTION_ID>C123.876</TRANSACTION_ID>
<TRANSACTION_DATE_KEY>20170330</TRANSACTION_DATE_KEY>
<TRANSACTION_VALUE>117</TRANSACTION_VALUE>
<TOTAL_DISCOUNT/>
<STORE_ID>1111</STORE_ID>
<MARKETING_NAME>StoreName2</MARKETING_NAME>
<VISIT_TO_CITY>cityStore</VISIT_TO_CITY>
<TRANSACTION_CHANNEL_DESC>In-Store</TRANSACTION_CHANNEL_DESC>
</Row>
</ResultSet>
</Results>