aboutsummaryrefslogtreecommitdiff
path: root/src/library_jansson.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_jansson.js')
-rw-r--r--src/library_jansson.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_jansson.js b/src/library_jansson.js
index 93f239fc..da8c5aa8 100644
--- a/src/library_jansson.js
+++ b/src/library_jansson.js
@@ -79,7 +79,7 @@ var LibraryJansson = {
load: function(string, flags, error) {
// This is potentially a security problem.
// TODO: Make sure everything is properly escaped
- var json_obj = eval('(' + string + ')');
+ var json_obj = JSON.parse(string);
if (json_obj != null) {
// The context is an array storing all child nodes.