reactivemongo.play.json.compat.bson2json
Implicit conversions for handler types
from reactivemongo.api.bson
to play.api.libs.json
.
import reactivemongo.play.json.compat.bson2json._
def bar[T](br: reactivemongo.api.bson.BSONReader[T]) = {
val r: play.api.libs.json.Reads[T] = br
r
}
'''Note:''' Importing both json2bson
& bson2json
can lead to diverging implicits in Scala 2.11
(see HandlerConverterSpec211
).