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