Using dojo/json now to take care of cross-browser compatibility