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