POST json strings using tsv feeder


I would like to POST multiple json strings which are saved in .tsv and using tsv Feeder. I keep getting the exception java.nio.file.InvalidPathException: Illegal char <:> at index 2 /C:/load-test/build/resources/test/data/test.tsv

So the tsv file looks something like this:

{“content1”: [“1”,“2”], “content2”: “3”, “object”: {“content3”: “4”, “content4”: [[[[5,6], [7,8]]]]}}
{“content1”: [“9”,“10”], “content2”: “11”, “object”: {“content3”: “12”, “content4”: [[[[13, 14], [15, 16]]]]}}

And my code looks something like:

val File = getClass.getResource("/data/test.tsv").getFile
val Feeder = tsv(File, rawSplit=true).circular
val scn = scenario(“POST”)
http(“post data”)
.body(StringBody("""{“content1”:${content1}, “content2”:${content2}, “content3”:${content3}, “content4”:${content4} }"""))

I have also tried to save the file as .json and using json feeder but the same exception occurs.

Any help would be much appreciated.

Thanks :slight_smile: