I am trying to save an object with lists however, when I save it the document appears with "\", like that:
\"tags\":[\"java\",\"eclipse\",\"jdbc\",\"jpa\",\"hibernate\",\"jee\",\"jsp\",\"servlets\",\"taglibs\",\"tagfiles\",\"mvc\",\"ajax\",\"spring\",\"tomcat\"]
When I print my map instance with toString()
the result is without those "\", however,
when I print my BasicDBObject it returns me the result with "\"
public void save(Map<String, Object> mapInstance) {
BasicDBObject document = new BasicDBObject(mapInstance);
collection.insert(document);
}