I am trying to send this JSON payload in request data from Jmeter and I want to read PaymentID and Parts:[ "field2"] from .csv file that has some extra coulmns, any help in this regard? 1) How to read specific columns as input values from .csv file? 2) How to read JSON object values from .csv file?
Payload:
{
"Location":"xxx",
"Payment":
{
"Source": "xxx",
"SourceID": "123456789",
***"PaymentID": "",***
"PaymentType": "xx",
"PaymentForm": "API",
"CustomerNo": "xx",
"PaymentDate":"18 SEP 2018",
"Amount": "xxxx",
"TaxCode": "Sxx",
"Operator": "",
"TillNo": "",
"Description": "",
"Parts": [
{
"field": "xxx",
***"field2": "xx",***
"field3": "xx"
}
]
}
}