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