http://jsonfiddle.net/cxhiu Can't save and empty document.