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