Please note that I am trying to send the below request and validate the response on POST method using url `http:*******
Note : I tried sending nested Json as an array like ****[0]='', voucherData[1]=''
etc but I got same error.
Please note that I am trying to send the below request and validate the response on POST method using url `http:*******
Note : I tried sending nested Json as an array like ****[0]='', voucherData[1]=''
etc but I got same error.
Here is a tip. Since you know the expected request structure, keep in mind that you can use it almost as-is in Karate. And proper JSON with double-quotes etc. is totally fine. And you can use the multi-line option. So please try this for the request step:
And request
"""
{
"memberId":"******",
"memberIpAddress":"******",
"voucherData":{
"******":{
"voucherNo":"*****",
"voucherValue":"***",
"voucherIssueDate":"",
"voucherExpiryDate":"******"
}
}
}
"""
And this should work ! Try it.