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