reading csv file with stimuli

558 views
Skip to first unread message

lotus...@gmail.com

unread,
May 11, 2018, 6:12:44 AM5/11/18
to jsPsych
Hello, I am preparing an experiment with hundreds of stimuli.
Is it possible to read a csv file with the stimuli and all the information about them and then transform it into an array?
Or can you suggest any other way to include hundreds of stimuli without putting them into an array manually?

Thanks in advance!

Gerda

Josh de Leeuw

unread,
May 15, 2018, 9:25:36 AM5/15/18
to lotus...@gmail.com, jsPsych
I'd suggest getting the data into JSON format, which can be parsed by JavaScript using JSON.parse(). If you already have the data in CSV, then a tool like (https://www.csvjson.com/csv2json) should be able to do the conversion automatically.

--
You received this message because you are subscribed to the Google Groups "jsPsych" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jspsych+u...@googlegroups.com.
To post to this group, send email to jsp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jspsych/39b75f19-e357-415d-b8dc-7721f834c3d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lotus...@gmail.com

unread,
Jun 6, 2018, 5:15:33 AM6/6/18
to jsPsych
Hi Josh, thanks a lot!
And generally, your project is just great!:)
Reply all
Reply to author
Forward
0 new messages