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