PlayJsonModule

play.api.libs.json.jackson.PlayJsonModule
See thePlayJsonModule companion object
sealed class PlayJsonModule(parserSettings: JsonParserSettings) extends PlayJsonMapperModule

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 jsonSettings = JsonSettings.settings
val mapper = new ObjectMapper().registerModule(
 new PlayJsonMapperModule(jsonSettings))
val jsValue = mapper.readValue("""{"foo":"bar"}""", classOf[JsValue])

Attributes

Companion
object
Deprecated
true
Graph
Supertypes
class SimpleModule
trait Serializable
class Module
trait Versioned
class Object
trait Matchable
class Any
Show all
Known subtypes
object PlayJsonModule.type

Members list

Value members

Concrete methods

override def setupModule(context: SetupContext): Unit

Attributes

Definition Classes
PlayJsonMapperModule -> SimpleModule -> Module

Inherited methods

def addAbstractTypeMapping[T <: <FromJavaObject>](x$0: Class[T], x$1: Class[_ <: T]): SimpleModule

Attributes

Inherited from:
SimpleModule
def addDeserializer[T <: <FromJavaObject>](x$0: Class[T], x$1: JsonDeserializer[_ <: T]): SimpleModule

Attributes

Inherited from:
SimpleModule
def addKeyDeserializer(x$0: Class[_ <: <FromJavaObject>], x$1: KeyDeserializer): SimpleModule

Attributes

Inherited from:
SimpleModule
def addKeySerializer[T <: <FromJavaObject>](x$0: Class[_ <: T], x$1: JsonSerializer[T]): SimpleModule

Attributes

Inherited from:
SimpleModule
def addSerializer[T <: <FromJavaObject>](x$0: Class[_ <: T], x$1: JsonSerializer[T]): SimpleModule

Attributes

Inherited from:
SimpleModule
def addSerializer(x$0: JsonSerializer[_ <: <FromJavaObject>]): SimpleModule

Attributes

Inherited from:
SimpleModule
def addValueInstantiator(x$0: Class[_ <: <FromJavaObject>], x$1: ValueInstantiator): SimpleModule

Attributes

Inherited from:
SimpleModule
def getDependencies(): Iterable[_ <: Module]

Attributes

Inherited from:
Module
def getModuleName(): String

Attributes

Inherited from:
SimpleModule
def getTypeId(): <FromJavaObject>

Attributes

Inherited from:
SimpleModule
def registerSubtypes(x$0: Collection[Class[_ <: <FromJavaObject>]]): SimpleModule

Attributes

Inherited from:
SimpleModule
def registerSubtypes(x$0: NamedType*): SimpleModule

Attributes

Inherited from:
SimpleModule
def registerSubtypes(x$0: Class[_ <: <FromJavaObject>]*): SimpleModule

Attributes

Inherited from:
SimpleModule
def setAbstractTypes(x$0: SimpleAbstractTypeResolver): Unit

Attributes

Inherited from:
SimpleModule
def setDeserializerModifier(x$0: BeanDeserializerModifier): SimpleModule

Attributes

Inherited from:
SimpleModule
def setDeserializers(x$0: SimpleDeserializers): Unit

Attributes

Inherited from:
SimpleModule
def setKeyDeserializers(x$0: SimpleKeyDeserializers): Unit

Attributes

Inherited from:
SimpleModule
def setKeySerializers(x$0: SimpleSerializers): Unit

Attributes

Inherited from:
SimpleModule
def setMixInAnnotation(x$0: Class[_ <: <FromJavaObject>], x$1: Class[_ <: <FromJavaObject>]): SimpleModule

Attributes

Inherited from:
SimpleModule
def setSerializerModifier(x$0: BeanSerializerModifier): SimpleModule

Attributes

Inherited from:
SimpleModule
def setSerializers(x$0: SimpleSerializers): Unit

Attributes

Inherited from:
SimpleModule
def setValueInstantiators(x$0: SimpleValueInstantiators): Unit

Attributes

Inherited from:
SimpleModule
def version(): Version

Attributes

Inherited from:
SimpleModule