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