Replies: 2 comments
-
Hi @dm0rg8n add the JSON.stringify to your plugin or on finish section.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm having the same issue. Did you find a solution? Previous experiments that use to save correctly are now just saving "response" data with the word "array". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently saving my data using the scripts provided here https://github.com/vassar-cogscilab/php-mysql-save-data. After a recent update to jspsych the scripts (#1523) now appear to store data in the 'response' key value pair of jspsych.data as the word "array" in phpmyadmin and not the responses provided by the participants, e.g., {consent1: yes, consent2: yes, and so on (see attached image). The script worked as expected when we used the previous version of jspsych, we are now only encountering this problem with the updated version.
I think this might be because "jsPsych data now stores JavaScript arrays and objects, rather than JSON-stringified versions of objects/arrays" as per one of the recent updates. Would anyone know how to resolve this issue?
Sorry if I have missed the solution to this in the disucssion and thank you in advance for any help you can provide, I really appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions