I have a case class with an attribute of type Map[String, Map[String, Int]]. When retrieving the corresponding record from Mongodb, the map is deserialized as Map[String, DbObject].
The exception : Caused by: java.lang.ClassCastException: com.mongodb.BasicDBObject cannot be cast to scala.collection.MapLike
I tried to hook my own deserializer to the context but it seems it is not taken into account. How can I deal with such deserialisation issue ?
I am using Salat 1.9.9 and Casbah 2.7.1