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