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