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