#1 by xuxu1989
Hi all, I've been trying to convert an experiment from oTree 3.4 to oTree 5.9. I got the problem that json-script cannot be recognized as a filter. Using json-script, I tried to pass a dictionary of config parameters from python to Javascript. Things work fine with oTree 3.4, but oTree5 seems not recognize json-script. The attached first is what I wrote in the script in the template. The dictionary is assigned to config_dict in class Page in init.py, and I gave it an id of config-data. I already import json in init.py. I also tried another way, as the second attached, just to take the id out. It doesn't work either. Thanks a lot in advance!