Skip to Content | Skip to Navigation


dojo.toJson

Deprecated. Use dojo/json::stringify() instead.

Old syntax:

dojo.toJson({x: 5, y: 3})

New syntax:

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