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