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})
});

Table of Contents

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