我试图在任务运行结束后将数据从 JSPSYCH 脚本发送到 Pavlovia 服务器。该任务没有出错并且从头到尾运行顺利,但是,当它尝试与 Pavlovia 服务器通信以发送实验数据时,我收到此错误:
[jspsych-pavlovia 插件 2020.2] 上传参与者的实验结果时出错:Voigt/aversion_visual_task 从服务器上先前打开的会话中保存数据时无法对值进行 JSON 解码:额外数据:第 1 行第 13 列(字符 12)
数据可以成功保存为 CSV 格式,但不能保存在数据库中。我已经从浏览器控制台获取了实验数据,以确定问题的来源,但我看不出有什么问题。
从实验中获得的前几行json格式的数据是:
"[{"trial_type":"pavlovia","trial_index":0,"time_elapsed":2746,"internal_node_id":"0.0-0.0","subject":"parisaz87test"},{"rt":10972.60000000149,"响应":"{\"Q0\":\"parisaz87test\"}","trial_type":"survey-text","trial_index":1,"time_elapsed":13720,"internal_node_id":"0.0-1.0" ,"subject":"parisaz87test","Trial_Name":"初始提示"},{"view_history":"[{\"page_index\":0,\"viewing_time\":939.9000000003725},{\"page_index\" :1,\"viewing_time\":1420.0999999996275},{\"page_index\":2,\"viewing_time\":882},{\"page_index\":3,\"查看时间\":1025.5999999996275},{\"page_index\":4,\"viewing_time\":3812.199999999255},{\"page_index\":5,\"viewing_time\":471.6000000014901},{\"page_index\": 6,\"viewing_time\":554.2999999988824},{\"page_index\":7,\"viewing_time\":552},{\"page_index\":8,\"viewing_time\":1026.0999999996275}]"," rt":10684.599999999627,"trial_type":"instructions","trial_index":2,"time_elapsed":24407,"internal_node_id":"0.0-2.0","subject":"parisaz87test","Trial_Name":"Instructions" },{"success":true,"trial_type":"fullscreen","trial_index":3,"time_elapsed":26711,"internal_node_id":"0.0-3.0","主题":"parisaz87test"},{"view_history":"
有没有人对此错误有任何见解?
提前致谢!