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