json->xml guard from lost keys