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