# POST json strings using tsv feeder

**URL:** <https://community.gatling.io/t/post-json-strings-using-tsv-feeder/3266>\
**Category:** Gatling (Open-Source)\
**Created:** [September 13, 2016, 10:25am UTC](https://community.gatling.io/t/post-json-strings-using-tsv-feeder/3266 "2016-09-13T10:25:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhu\_Hui\_Wang](https://avatars.discourse-cdn.com/v4/letter/z/65b543/32.png) [@Zhu\_Hui\_Wang](https://community.gatling.io/u/Zhu_Hui_Wang)\
**Post date:** [September 13, 2016, 10:25am UTC](https://community.gatling.io/t/post-json-strings-using-tsv-feeder/3266/1 "2016-09-13T10:25:43Z")

</div>

Hello,

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”)  
.feed(Feeder)  
.exec(  
http(“post data”)  
.post("/test\_url")  
.body(StringBody("""{“content1”:${content1}, “content2”:${content2}, “content3”:${content3}, “content4”:${content4} }"""))  
.asJSON  
.check(status.is(200))

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 🙂
