175176177178179180181182183184185
// Remove EOL at end of _id attribute. This is to avoid // issues with some editors (vi) that automatically add an EOL // at the end of a text file. if( "_id".equals(key) ) { value = value.trim(); } this.jsonObj.put(key, value); } } else {
if( "_id".equals(key) ){ // It is not likely that preceding and trailing // spaces are intended for document identififer. // They cause way too much trouble. value = value.trim(); } this.jsonObj.put(key, value); } } else {