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