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

Methods

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

Inherited methods

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