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