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