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