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