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