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