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