bguerout/jongo — pull request #180 by ecohen11 (2014-01-13 12:05:15+00:00)
Title: Fix ObjectId string deserializer

I encounter a problem when define the @ObjectId annotation on a String property as follow:

@ObjectId
@org.jongo.marshall.jackson.oid.Id
private String id;

I use Jackson to convert the same json object twice:
1) convert java object to/from mongoDB
2) convert java object to/from spring REST controller (as java server api)

The ObjectIdDeserializer adding extra inverted commas (") when converting the text from json to java object using spring REST Controller.
for example the following json object:
{
"id" : "52d25f8f6e5c6d7a25eea8b5"
}
is converted to java object with double inverted commas as follow:
private String id = ""52d25f8f6e5c6d7a25eea8b5""

the code I added is fix this issue using asText() function instead of toString() function.