Skip to content

Commit

Permalink
JSON stringify the stimulus array in the trial data
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Dec 8, 2020
1 parent e9d632c commit 4296203
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/jspsych-video-button-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ jsPsych.plugins["video-button-response"] = (function() {
// gather the data to store for the trial
var trial_data = {
"rt": response.rt,
"stimulus": trial.stimulus,
"stimulus": JSON.stringify(trial.stimulus),
"button_pressed": response.button
};

Expand Down
2 changes: 1 addition & 1 deletion plugins/jspsych-video-keyboard-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jsPsych.plugins["video-keyboard-response"] = (function() {
// gather the data to store for the trial
var trial_data = {
"rt": response.rt,
"stimulus": trial.stimulus,
"stimulus": JSON.stringify(trial.stimulus),
"key_press": response.key
};

Expand Down
2 changes: 1 addition & 1 deletion plugins/jspsych-video-slider-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ jsPsych.plugins["video-slider-response"] = (function() {
// gather the data to store for the trial
var trial_data = {
"rt": response.rt,
"stimulus": trial.stimulus,
"stimulus": JSON.stringify(trial.stimulus),
"start": trial.start,
"slider_start": trial.slider_start,
"response": response.response
Expand Down

0 comments on commit 4296203

Please sign in to comment.