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