Hi All,
Can someone help me on how to send multiple JSON's as payload for a HttpRequest from a csv or text file. I'm doing some API Perf testing, where I want to send multiple json's(diff json for diff use cases) as message body for the API request.
I tried by putting the json's in an in-formatted way with one json in one line and next in next line like which I have multiple jsons/lines in a text file, and I'm reading this file using CSV Data Config and trying to put the variable name as Request payload.
When the script starts running getting the below exception,
{"httpStatus":503,"serviceId":0,"errorCode":"ITEM50000","debugMessage":"JSON parse error: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (PushbackInputStream); line: 1, column: 1]); nested exception is com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (PushbackInputStream); line: 1, column: 1])\n at [Source: (PushbackInputStream); line: 1, column: 51]","messageArgs":{}}
Can some one please help on this.