PlayJsonModule

sealed class PlayJsonModule(parserSettings: JsonParserSettings) extends SimpleModule

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

Value members

Concrete methods

override def setupModule(context: SetupContext): Unit
Definition Classes
SimpleModule -> Module

Inherited methods

def addAbstractTypeMapping[T <: <FromJavaObject>](x$0: Class[T], x$1: Class[_ <: T]): SimpleModule
Inherited from
SimpleModule
def addDeserializer[T <: <FromJavaObject>](x$0: Class[T], x$1: JsonDeserializer[_ <: T]): SimpleModule
Inherited from
SimpleModule
def addKeyDeserializer(x$0: Class[_ <: <FromJavaObject>], x$1: KeyDeserializer): SimpleModule
Inherited from
SimpleModule
def addKeySerializer[T <: <FromJavaObject>](x$0: Class[_ <: T], x$1: JsonSerializer[T]): SimpleModule
Inherited from
SimpleModule
def addSerializer[T <: <FromJavaObject>](x$0: Class[_ <: T], x$1: JsonSerializer[T]): SimpleModule
Inherited from
SimpleModule
def addSerializer(x$0: JsonSerializer[_ <: <FromJavaObject>]): SimpleModule
Inherited from
SimpleModule
def addValueInstantiator(x$0: Class[_ <: <FromJavaObject>], x$1: ValueInstantiator): SimpleModule
Inherited from
SimpleModule
def getDependencies(): Iterable[_ <: Module]
Inherited from
Module
def getModuleName(): String
Inherited from
SimpleModule
def getTypeId(): <FromJavaObject>
Inherited from
SimpleModule
def registerSubtypes(x$0: Collection[Class[_ <: <FromJavaObject>]]): SimpleModule
Inherited from
SimpleModule
def registerSubtypes(x$0: NamedType*): SimpleModule
Inherited from
SimpleModule
def registerSubtypes(x$0: Class[_ <: <FromJavaObject>]*): SimpleModule
Inherited from
SimpleModule
def setAbstractTypes(x$0: SimpleAbstractTypeResolver): Unit
Inherited from
SimpleModule
def setDeserializerModifier(x$0: BeanDeserializerModifier): SimpleModule
Inherited from
SimpleModule
def setDeserializers(x$0: SimpleDeserializers): Unit
Inherited from
SimpleModule
def setKeyDeserializers(x$0: SimpleKeyDeserializers): Unit
Inherited from
SimpleModule
def setKeySerializers(x$0: SimpleSerializers): Unit
Inherited from
SimpleModule
def setMixInAnnotation(x$0: Class[_ <: <FromJavaObject>], x$1: Class[_ <: <FromJavaObject>]): SimpleModule
Inherited from
SimpleModule
def setSerializerModifier(x$0: BeanSerializerModifier): SimpleModule
Inherited from
SimpleModule
def setSerializers(x$0: SimpleSerializers): Unit
Inherited from
SimpleModule
def setValueInstantiators(x$0: SimpleValueInstantiators): Unit
Inherited from
SimpleModule
def version(): Version
Inherited from
SimpleModule