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