Load params from json

This commit is contained in:
Arjun Singh
2012-08-28 00:49:32 -07:00
parent 8ed9ab44e7
commit f7ebc4dd23

View File

@@ -412,7 +412,7 @@ class JavascriptResponse(LoncapaResponse):
id=self.xml.get('id')):
raw_param = param.get("value")
params[param.get("name")] = contextualize_text(raw_param, self.context)
params[param.get("name")] = json.loads(contextualize_text(raw_param, self.context))
return params