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