Read data from CSV and pass the data in double quotes of post request payload

How to read data from csv and pass as payload which is in double quotes?
Suppose I have to fetch Username as “Test” from csv then pass in k6.Need help.

Hello @ankushakhotele2019,

Welcome to the forum :tada:

Here you can find an example of how to read a CSV file and use the data from there.

Then, if you need to manipulate that data to be present within a string variable, you can use standard JavaScript interpolation, like: your-variable-is-${variable}.

I hope that helps!

Thanks! :bowing_man: