The Play JSON module for Jackson.
This can be used if you want to use a custom Jackson ObjectMapper, or more advanced Jackson features when working with JsValue. To use this:
import com.fasterxml.jackson.databind.ObjectMapper
import play.api.libs.json.JsValue
import play.api.libs.json.jackson.PlayJsonModule
import play.api.libs.json.JsonParserSettings
val jsonParseSettings = JsonParserSettings()
val mapper = new ObjectMapper().registerModule(
new PlayJsonModule(jsonParseSettings))
val jsValue = mapper.readValue("""{"foo":"bar"}""", classOf[JsValue])
- Companion
- object
class SimpleModule
trait Serializable
class Module
trait Versioned
class Object
trait Matchable
class Any
object PlayJsonModule
Value members
Concrete methods
Inherited methods
def addDeserializer[T <: <FromJavaObject>](x$0: Class[T], x$1: JsonDeserializer[_ <: T]): SimpleModule
- Inherited from
- SimpleModule
def addKeySerializer[T <: <FromJavaObject>](x$0: Class[_ <: T], x$1: JsonSerializer[T]): SimpleModule
- Inherited from
- SimpleModule
def setMixInAnnotation(x$0: Class[_ <: <FromJavaObject>], x$1: Class[_ <: <FromJavaObject>]): SimpleModule
- Inherited from
- SimpleModule