dojo.eval

Deprecated.

To convert JSON to a javascript object, use dojo/json::parse():

require(["dojo/json"], function(json){
  var parsed = json.parse("{x: 5, y: 3}");
});

To evaluate an arbitrary string of javascript, just use eval():

eval("x = 5");

Table of Contents

Error in the documentation? Can’t find what you are looking for? Let us know!