Let's say I have ....
val obj: MongoDBObject = getDbObj
println(obj)
prints out:
{ "_id" : "1234", "name":"Kevin", "age":"100" }
How can I convert obj
to a JsValue
?
Let's say I have ....
val obj: MongoDBObject = getDbObj
println(obj)
prints out:
{ "_id" : "1234", "name":"Kevin", "age":"100" }
How can I convert obj
to a JsValue
?
Copyright © 2021 Jogjafile Inc.
This is how you do it for Play 2.1 (documentation)