You would need a custom formatter
dmx.Formatter('object', 'stringify', function stingfy(val) {
return JSON.stringify(val);
})
place that in a JS file and include it on your page (or put it between script tags on the page). Then use it like you would any other formatter:
somevalue.stringify()