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